Git Product home page Git Product logo

aes_cbc_128's Introduction

文件说明:
aes.h      // 头文件包含加解密函数的声明
aes.c      // 加解密函数的定义
main.c     // 主函数,测试加解密算法
compile.sh // 编译脚本

使用说明:
1.设置初始化向量为:aes.c文件611,636行,这个可以自己随意设置,单必须是16字节
2.设置秘钥:main.c 28行
3.linux:终端中执行./compile.sh脚本编译程序
4.执行./gen_enc testfile 1      //加密, 执行完之后会产生testile.enc文件
  设置k值,main.c 75行
  执行./gen_enc testfile.enc 0  //解密,执行完之后会产生testile.dec文件

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.