Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing a string with RSA private key on Google App Engine Python SDK

Is there any known way to sign a plain text string with RSA private key on Google App Engine Python SDK?

like image 479
Vladimir Prudnikov Avatar asked Mar 02 '10 15:03

Vladimir Prudnikov


1 Answers

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)
like image 91
sebastian serrano Avatar answered Sep 29 '22 13:09

sebastian serrano