Git Product home page Git Product logo

rsa-des's Introduction

RSA

一、功能介绍

实现128bit的RSA(包括素数和密钥对产生),实现传送DES加密算法所要用的密钥,并与DES算法一起形成传送DES加密密钥,然后用DES加密算法加密的完整体系,且采用CBC模式。

二、运行环境

  • Ubuntu 16.04.12
  • gcc 5.4.0
  • 已配置GMP(可通过sudo apt-get install libgmp-dev配置)

三、输入输出

  1. 输入:
  • 通过输入0或1来选取加密或解密模式
  • 通过输入密钥文件(.txt)所在路径输入密钥,密钥为64位0/1串
  • 通过输入待加密/解密文件(.txt)文件所在路径输入待加密/解密字符串(0/1串)
  1. 输出:
  • 加/解密成功后会有提示
  • 密钥key经过RSA加密后的结果ci_key存放在ci_key_rsa.txt文件中
  • 被加密密钥ci_key经过RSA解密后的结果pl_key存放在pl_key_rsa.txt文件中
  • 加/解密结果为0/1串,存放在result.txt文件中

rsa-des's People

Contributors

o-potato 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.