A
Andrew Veitch
I am trying to implement Domain Keys
(http://domainkeys.sourceforge.net/) in Python.
In Perl I would just use Crypt:RSA which has a sign
method with an armour option which generates exactly
what I want but I can't find a way of doing this in
Python.
I tried this:
from M2Crypto import RSA
key = RSA.load_key('rsa.private')
msg='Hello world'
print key.sign(msg)
But the output isn't quite right because there isn't
an armour option - I verified this by reading the
source.
I'm not even sure if M2Crypto is the right library to
be using or is it just that I need to use something
else for the final step?
Thanks in advance
Andrew
(http://domainkeys.sourceforge.net/) in Python.
In Perl I would just use Crypt:RSA which has a sign
method with an armour option which generates exactly
what I want but I can't find a way of doing this in
Python.
I tried this:
from M2Crypto import RSA
key = RSA.load_key('rsa.private')
msg='Hello world'
print key.sign(msg)
But the output isn't quite right because there isn't
an armour option - I verified this by reading the
source.
I'm not even sure if M2Crypto is the right library to
be using or is it just that I need to use something
else for the final step?
Thanks in advance
Andrew