package
0.0.0-20200310085232-3db7acb8db78
Repository: https://github.com/freshcyber/contrib.git
Documentation: pkg.go.dev
# README
openssl
private key
openssl genrsa -out private.pem 1024
private 2 pkcs8
openssl pkcs8 -topk8 -inform PEM -in private.pem -outform pem -nocrypt -out pkcs8_private.pem
public key
openssl rsa -in private.pem -pubout -out public.pem
# Functions
No description provided by the author
RsaDecrypt 私钥解密.
RsaEncrypt 公钥加密.
GenRsaKey 生成RSA公私钥文件.
No description provided by the author
Verify rsa verify hashed := md5.Sum(src) hashed := sha256.Sum256(src) signature is a valid signature of message from the public key.