On Fri, Jan 18, 2013 at 12:10 AM, Piet van Oostrum wrote:
> Marc Aymerich writes:
>
>> Thank you very much Piet,
>> I'm just starting to grasp these cryptography related concepts and your code
>> is helping me a lot to understand how to handle these keys in a low level.
>>
>> I'm updating my cod
Marc Aymerich writes:
> Thank you very much Piet,
> I'm just starting to grasp these cryptography related concepts and your code
> is helping me a lot to understand how to handle these keys in a low level.
>
> I'm updating my code incorporating your new contribution!
>
> Just to let you know, d
On Thursday, January 17, 2013 5:39:57 PM UTC+1, Piet van Oostrum wrote:
> > Converting to X.501 isn't difficult (assuming this is a 2048 bit key):
>
> > Get rid of the 'RSA' in header and trailer
>
> > Prepend X.501 header 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A' to the data
>
> > Reformat the lines
Piet van Oostrum wrote:
> Converting to X.501 isn't difficult (assuming this is a 2048 bit key):
> Get rid of the 'RSA' in header and trailer
> Prepend X.501 header 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A' to the data
> Reformat the lines to 64 characters.
This solution is a bit restricted as it only
On Thursday, January 17, 2013 1:32:25 AM UTC+1, Piet van Oostrum wrote:
> Marc Aymerich writes:
>
>
>
> > Hi,
>
> > I've been trying very, very hard to load an RSA key using M2Crypto but
> > without any success.
>
> >
>
> > basically this is what I'm trying to do:
>
> from M2Crypto i
Marc Aymerich writes:
> Hi,
> I've been trying very, very hard to load an RSA key using M2Crypto but
> without any success.
>
> basically this is what I'm trying to do:
from M2Crypto import BIO, RSA
pubkey = """-BEGIN RSA PUBLIC KEY-
> ... MIIBCgKCAQEApwotnfHT9RAmxnuaGEM