views:

345

answers:

2

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

+2  A: 

I haven't used it, but this appears to be a pure-Python RSA implementation, so it might work on App Engine:

http://stuvel.eu/rsa

Their Mercurial repo appears to be fairly active, too.

Will McCutchen
+1  A: 

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)
sebastian serrano