We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsakey = RSA.importKey(key) # 导入私钥 cipher = PKCS1_v1_5.new(rsakey) # 生成对象 missing_padding = len(en_pwd) % 4 if missing_padding: en_pwd += b'=' * (4 - missing_padding) text = cipher.decrypt(base64.b64decode(en_pwd.encode('utf-8')), "ERROR") # 将密文解密成明文,返回的是一个bytes类型数据,需要自己转换成str return text.decode('utf-8')
The text was updated successfully, but these errors were encountered:
git reset 上次提交也无法登录 放弃
Sorry, something went wrong.
无法登录?具体报什么错?
就报我发的那段代码有问题 不是byte 是str
感谢反馈,第一次做数据加密传输这块儿,所以可能会有点儿坑 @_@
No branches or pull requests
The text was updated successfully, but these errors were encountered: