GO实现非对称加密–RSA加密解密算法

caoyunmei 23 0 PDF 2021-01-16 11:01:38

package main import ( crypto/rand crypto/rsa crypto/x509 encoding/base64 encoding/pem errors fmt io/ioutil ) func main() { str := &^%$#@___Oneck___@#$%^& fmt.Println(初始字符串,str) cipherBytes,err := RSAEncrypt([]byte(str),./files/public.pem) if err != nil { fmt.Prin

用户评论
请输入评论内容
评分:
暂无评论