Re: help for using Python rsa

2015-02-07 Thread Dave Angel
On 02/07/2015 10:00 PM, Chris Angelico wrote: On Sun, Feb 8, 2015 at 1:55 PM, Cameron Simpson wrote: Given that Dave Angel has a tool that displays the 'SEcP...' string using mhr1224's input string, I'd say we're missing some context. I don't think he does; that was simulated output as part o

Re: help for using Python rsa

2015-02-07 Thread Chris Angelico
On Sun, Feb 8, 2015 at 1:55 PM, Cameron Simpson wrote: > Given that Dave Angel has a tool that displays the 'SEcP...' string using > mhr1224's input string, I'd say we're missing some context. I don't think he does; that was simulated output as part of an example of "here's how to ask your questi

Re: help for using Python rsa

2015-02-07 Thread Cameron Simpson
On 07Feb2015 18:15, Chris Angelico wrote: On Sat, Feb 7, 2015 at 4:14 PM, wrote: encrypted massage is like this: "@\xc4\xb2\x14r\xf1x\xb8\xb2\t;\x9a:\x1dl\x11\xe2\x10\xa9E\xee\x8b\xac\xd0\xd3Y\xfb}\xd9@\xdd\x0c\xa5\xd2\xfc1\xd6\x06\xf0\xb8\x944\xe1\xc2r\xe5anyq\xac\xdfh\xeb\x10\x80\x98\xa1\xe

Re: help for using Python rsa

2015-02-06 Thread Chris Angelico
On Sat, Feb 7, 2015 at 4:14 PM, wrote: > encrypted massage is like this: > "@\xc4\xb2\x14r\xf1x\xb8\xb2\t;\x9a:\x1dl\x11\xe2\x10\xa9E\xee\x8b\xac\xd0\xd3Y\xfb}\xd9@\xdd\x0c\xa5\xd2\xfc1\xd6\x06\xf0\xb8\x944\xe1\xc2r\xe5anyq\xac\xdfh\xeb\x10\x80\x98\xa1\xee'\xe6hpi" > > and i know it should be lik

Re: help for using Python rsa

2015-02-06 Thread Dave Angel
On 02/07/2015 12:14 AM, mhr1...@gmail.com wrote: I use this code to create public and private keys: import rsa (pubkey, privkey) = rsa.newkeys(512) And then convert it to PEM format: exppub =pubkey.save_pkcs1(format='PEM') exppriv = privkey.save_pkcs1(format='

help for using Python rsa

2015-02-06 Thread mhr1224
I use this code to create public and private keys: import rsa (pubkey, privkey) = rsa.newkeys(512) And then convert it to PEM format: exppub =pubkey.save_pkcs1(format='PEM') exppriv = privkey.save_pkcs1(format='PEM') When i encrypt massage with this keys: m