在Google App Engine Python SDK上使用RSA私钥签名字符串 [英] Signing a string with RSA private key on Google App Engine Python SDK
本文介绍了在Google App Engine Python SDK上使用RSA私钥签名字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何已知的方法在Google App Engine Python SDK上使用RSA私钥签名纯文本字符串?
包含在gdata python库中的库tlslite是一个不错的选择。http://code.google.com/p/gdata-python-client/
示例:
from tlslite.utils import keyfactory
private_key = keyfactory.parsePrivateKey(rsa_key)
signed = private_key.hashAndSign(数据)
Is there any known way to sign a plain text string with RSA private key on Google App Engine Python SDK?
解决方案
The library tlslite included in the gdata python library is a good option.
http://code.google.com/p/gdata-python-client/
example:
from tlslite.utils import keyfactory
private_key = keyfactory.parsePrivateKey(rsa_key)
signed = private_key.hashAndSign(data)
这篇关于在Google App Engine Python SDK上使用RSA私钥签名字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文