加密解密C#编程 [英] Encrypt Decrypt C# PROGRAMMING

查看:115
本文介绍了加密解密C#编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我正在做一些程序,使我能够执行以下密码

1个凯撒密码
2个仿射密码
3-playfair密码
4山密码
5代密码
6次一次性填充密码

并且程序应从程序中的文件和文本框中读取文本
然后它会询问您要使用哪种密码来加密文本,密码的密钥是什么,然后将加密的文本写入文件和程序中.


反之亦然,它应从文本框或文件中请求加密的文本,然后使用密钥应用解密算法以获取文件和程序上的解密文本.


我知道有很多要问的地方,但是我真的很感谢有人帮助我解决这个问题.

well i''m in middle of doing some program that allows me to do the following ciphers

1-caesar cipher
2-affine cipher
3-playfair cipher
4-hill cipher
5-vegenere cipher
6-one-time pad cipher

and the program should read the text from both a file and a textbox in the program
then it should ask which cipher do you want to use encrypting your text and what is the key for your cipher then write the encrypted text to a file and the program


and vice versa it should ask for the encrypted text from textbox or file then applying the decrypt algorithm using the key to get the decrypted text on a file and the program


i know its a lot to ask for but i really appreciate if someone helped me out of this.

推荐答案



在这里看看:
古典加密技术(本文介绍了您要使用的4种方法:Caesar,Playfair,Vigerene和希尔) [^ ]
仿射密码C# [一次性填充密码 [
Hi,

Have a look here:
Classical Encryption Techniques (4 of the methods you want to use are explained in this article: Caesar, Playfair, Vigerene and Hill)[^]
Affine cipher C#[^]
One-time pad cipher[^]


这篇关于加密解密C#编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆