Coder Social home page Coder Social logo

ikun123234 / des Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 14.67 MB

川大网安《应用密码学》课程实践分组密码算法实现 DES算法,实现通过代码实现DES算法,能够更有效的帮助我们理解DES算法的原理和流程,帮助我们深入了解DES算法四种模式

Home Page: https://github.com/ikun123234/DES

CMake 0.82% C 99.18%

des's Introduction

DES算法的实现

scu cyberspace security

四川大学应用密码学实验 具体要求如下:

image-20240516161129511

image-20240516161149568

实验结果

crypt.exe -h 查看相关帮助

image-20240516161420124

crypt.exe -p a_plain1_text -k a_key -m 0 -c ecb_1_encrypt 测试数据进行ECB加密

image-20240516161556227

crypt.exe -p a_plain1_text -v a_initvec -k a_key -m 1 -c cbc_1_encrypt 测试数据进行CBC加密

image-20240516161721407

crypt.exe -p a_plain1_text -v a_initvec -k a_key -m 2 -c cfb_1_encrypt 测试数据进行CFB加密

image-20240516161852366

crypt.exe -p a_plain1_text -v a_initvec -k a_key -m 3 -c ofb_1_encrypt 测试数据进行OFB加密

image-20240516161940044

自选数据进行十次加密

加密结果如下所示

image-20240516162058052

通过实验数据可知,CFB模式加密时间大概是其他加密模式的10倍左右,其他三种模式的加密时间类似,加密效率类似,至于时间存在波动,可能是因为后期进行了多线程运行,导致效率降低

des's People

Contributors

ikun123234 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.