GithubHelp home page GithubHelp logo

chenxs1122 / sha256withrsa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulyu12/sha256withrsa

0.0 0.0 0.0 6 KB

Sha256 with RSA signature demos

JavaScript 7.84% C++ 64.23% Python 7.43% Java 20.51%

sha256withrsa's Introduction

Sha256withRSA

Python2.7

预先安装 pycrypto

 # pip install pycrypto

Java

Java 私钥使用 PKCS#8 格式,这是和 python、C++ 不同的,后两者都使用 PKCS#1 格式的私钥,但是公钥都使用 PKCS#8 格式均没问题

C++

网上还有一种实现 sha256 with rsa 的方案,是使用 openssl 封装好的 rsa_sign, rsa_verify 函数。但测试发现 rsa_sign 签名结果虽然可以被 rsa_verify 验证,但是相同参数但情况下的签名结果与 java 和 python 不同,因此无法在不同语言之间互操作。因此建议使用本仓库中的实现方式。

node.js

私钥使用 PKCS#8 格式,程序同级目录需放置私钥文件和公钥文件。

sha256withrsa's People

Contributors

paulyu12 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.