[pycrypto] Create a Digital Signature (DER Encoded PKCS#1) - SHA1withRSA
Thorsten Behrens
sbehrens at gmx.li
Tue Dec 28 16:09:38 CST 2010
>> It wasn't for Home Work :-)
Okay :D
>
> m.digest()
> or
> m.hexdigest() as the computed hash value.
That depends on what you want to do next. m.digest() returns the digest
in binary form, ready to be used for further manipulation, such as
having it signed. m.hexdigest() returns it in a form suitable for
inclusion in a text transmission, such as email.
> Following this, how can i use Crypto again to Sign the computed Hash
> Value using the Private Key?
>
PKCS #1 has not been integrated into trunk yet. There is a patch
available, though, here: https://bugs.launchpad.net/pycrypto/+bug/502291
Thorsten
More information about the pycrypto
mailing list