Coder Social home page Coder Social logo

des's Introduction

DES算法c++实现

模块划分

(1)useDes模块:顶层模块

(2)IP_trans模块:初始置换IP

(3)Split_data模块:分解IP置换后的数据,获取 L0 和 R0

(4)T模块:十六轮迭代(获取L16,R16)

  • F模块:Feistel轮函数,接收32位数据和48位子密钥,产生一个32位的输出

  • generateKeys模块:生成16个48位的子密钥

  • leftShift模块:对56位密钥的前后部分进行左移

(5)Merge模块:合并L16和R16,注意合并为 R16L16

(6)IP_1_trans模块:结尾置换IP-1

参考资料

DES算法实例详解:http://www.hankcs.com/security/des-algorithm-illustrated.html

DES加密算法的C++实现:https://songlee24.github.io/2014/12/06/des-encrypt/

des's People

Contributors

9ayhub 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.