Re: SHA1withRSA in python

2008-11-18 Thread Mailing List SVR
Ok thanks, for the records here is the python code to be compatible with java sha1withrsa: import M2Crypto md=M2Crypto.EVP.MessageDigest('sha1') md.update(clearpass) p=md.digest() key=M2Crypto.RSA.load_key(pathtokey) enc=key.sign(p) regards Nicola Il giorno mer, 12/11/2008 alle 17.45 +1100, Py

Re: SHA1withRSA in python

2008-11-11 Thread Python Nutter
For simple hashing algorithms, then use the aformentioned built in hashlib in Python. However for the rest you need M2Crypto to get a wrapper around OpenSSL: M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES);

Re: SHA1withRSA in python

2008-11-11 Thread Jeremiah Dodds
On Tue, Nov 11, 2008 at 12:40 PM, Mailing List SVR <[EMAIL PROTECTED]>wrote: > Hi all, > > in java there are several libraries for sha1withrsa, there is something > similar in python? > > thanks > Nicola > > -- > http://mail.python.org/mailman/listinfo/python-list > http://docs.python.org/librar

SHA1withRSA in python

2008-11-11 Thread Mailing List SVR
Hi all, in java there are several libraries for sha1withrsa, there is something similar in python? thanks Nicola -- http://mail.python.org/mailman/listinfo/python-list