Coder Social home page Coder Social logo

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

Yihao Kai's Projects

Yihao Kai doesn’t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.