GithubHelp home page GithubHelp logo

rsa-encryption-server's Introduction

rsa加密服务端

介绍

这个是专门解决多语言不互通的问题而建立的服务端(功能尚不完全,请等后续更新) 组织官网:hcteam.top

软件架构

利用pycryptodome库进行加密、解密, 利用socket库进行网络传输, 利用threading中的Thread进行多线程处理任务

安装教程

  1. 双击install.bat
  2. 运行start.bat就能用了

注意事项

  1. 此加密能够支持大型字符串加密,但是可能会和其他的加密不兼容 请见谅
  2. 此服务端的密钥生成可以用于其他rsa加密
  3. 建议不要发送错误的命令,可能服务端会报错

使用说明

  1. 服务端地址是127.0.0.1:5000,有需要可以更改 编码方式:gb2312 修改服务端的密钥:data文件夹里面的pub.pempri.pem
  2. 如何传输加密指令?向服务端发送: {"comm":"enrsa","data":string类型的数据,"key":pub,"lenth":密钥大小(一般是2048)} ,返回值是加密后的数据, 类型:python中是bytes,c/c++ 貌似是unsigned char
  3. 如何解密?直接向服务端发送对方加密过的数据 返回值是解密后的数据
  4. 更新服务端本地的密钥:向服务端发送json样式: {"comm":"rsa_key_server","lenth":2048} 返回值是:"ok"
  5. 如何获取随机的rsa的公钥和密钥?向服务端发送: {"comm":"rsa_key_back","lenth":2048} 返回值是:{"pub": 公钥, "pri": 密钥}, 返回值中python中类型是str,c/c++中是string/const char*

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

rsa-encryption-server's People

Contributors

quqionfree avatar

Stargazers

 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.