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
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
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,
>
> -
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,
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/
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
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