var encrypt = new JSEncrypt();
encrypt.setPublicKey(publickey);
var encrypted = encrypt.encrypt(data) //加密完后输出的数据是base64编码
data, err := base64.StdEncoding.DecodeString(data) //后台要先base64解码才能解密
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publickey);
var encrypted = encrypt.encrypt(data) //加密完后输出的数据是base64编码
data, err := base64.StdEncoding.DecodeString(data) //后台要先base64解码才能解密
本文标题:jsencrypt前台加密,Go后台解密失败
本文链接:https://www.haomeiwen.com/subject/aipxmctx.html
网友评论