hi!
RC6 Encryption and Decryption using CBC mode and part of CTR mode
密码学大作业,使用分组密码完成加解密系统,并采用分组密码工作模式如CBC,OFB,CTR等。我开始使用了CTR模式
但目前所学知识并不足以在并行系统上完成,所以便采用CBC模式。同时,这两个模式也是目前最常用的模式。
Now plaintenxt is set in C:/plaintext.txt, with a ciphertext generated after run this cpp.
And this cpp will read ciphertext.txt, and decrypt it, and generate a confirm plaintext.txt in C:/
to verify the correctness of encryption and decrption mode.
Also the cpp also has the normal encryption and decryption. ( In the bottom of cpp )
I use MD5 to generate Keys with your password.
If u dunt want like this, u can ask generate keys ramdomly or type manually.
Thats's all.
Thanks for commenting and correcting.
Attention : the keys are in hex. And edit your ciphertext.txt in C:/ in advance