Re: Shell Script on a string
Re: Shell Script on a string
- Subject: Re: Shell Script on a string
- From: Hudson Barton <email@hidden>
- Date: Sun, 17 Nov 2002 08:07:55 -0500
At 4:22 AM -0800 11/17/02, Randal L. Schwartz wrote:
>>>>> "Hudson" == Hudson Barton <email@hidden> writes:
Hudson> OK. That's excellent. Now I want to do one that requires entering a
Hudson> password (an encryption routine), but I can't get the syntax
Hudson> right. Here's what I have:
Hudson> set x to (do shell script ("echo '" & myText & "' | openssl bf -salt
Hudson> -pass pass:" & Password1 & ""))
These are *soooo* unsafe when the password contains odd characters.
Shell quoting, people. Shell metacharacters, people.
{sigh}
Which "odd characters" are unsafe? Why are they unsafe?
Notwithstanding the issue of "unsafe" characters, I can't get the
syntax right even with a simple password like "hello".
H.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.