Re: feeding a private rsa key through the shell to get the public

2013-05-05 Thread Thierry Douez
Hi, this works: on mouseUp local _code, _decode,str2code,Result_code,Result_decode put "Live is beautiful" into str2code put "echo -n " "e& str2code "e & " | openssl enc -base64" into _code put shell( _code ) into Result_code put "echo -n " "e& Result_code "e & " | openssl enc -ba

Re: feeding a private rsa key through the shell to get the public

2013-05-04 Thread Glen Bojsza
Sorry, I just realized you are avoiding using a file ... jumped the gun. On Sun, May 5, 2013 at 2:07 AM, Glen Bojsza wrote: > Have you tried... > > put shell ("openssl rsa -in /path/mypemfile -pubout") > > Glen > > > > On Sat, May 4, 2013 at 6:46 PM, Dr. Hawkins wrote: > >> On Sat, May 4, 2013

Re: feeding a private rsa key through the shell to get the public

2013-05-04 Thread Glen Bojsza
Have you tried... put shell ("openssl rsa -in /path/mypemfile -pubout") Glen On Sat, May 4, 2013 at 6:46 PM, Dr. Hawkins wrote: > On Sat, May 4, 2013 at 3:24 PM, Alex Tweedly wrote: > > > put the shell of ("echo " & fld privateKey & " | openssl rsa -pubout") > > > > that produces, > > -

Re: feeding a private rsa key through the shell to get the public

2013-05-04 Thread Alex Tweedly
I know you said you were trying to avoid using files - but it might be the easiest option. Write the field to a temp file, then use that in the shell command; I think if you use specialfolderPath("Temporary") you will be independent of file system variations (for desktops). Otherwise - sorry,

Re: feeding a private rsa key through the shell to get the public

2013-05-04 Thread Dr. Hawkins
On Sat, May 4, 2013 at 3:24 PM, Alex Tweedly wrote: > put the shell of ("echo " & fld privateKey & " | openssl rsa -pubout") > that produces, -BEGIN RSA PRIVATE KEY- /bin/sh: line 2: MIIJKQIBAAKCAgEAqtf05M03fM9BaOhdaY1C+dfp6D1dHDa9pJ7RBgcYd57n3AiY: command not found /bin/sh: line 3: MF/

Re: feeding a private rsa key through the shell to get the public

2013-05-04 Thread Alex Tweedly
Maybe put the shell of ("echo " & fld privateKey & " | openssl rsa -pubout") -- Alex. On 04/05/2013 23:10, Dr. Hawkins wrote: I'm successfully generating an rsa key and putting it where I needed it (a field). I'm not having any luck extracting it from a shell command. I want to do something

feeding a private rsa key through the shell to get the public

2013-05-04 Thread Dr. Hawkins
I'm successfully generating an rsa key and putting it where I needed it (a field). I'm not having any luck extracting it from a shell command. I want to do something like put the shell of "echo " & fld privateKey & " | openssl rsa -pubout" but this yields a blank line and the private key. (on