On Mar 6, 2013, at 15:17 , SUBSCRIBE MACSCRPT Inyo55 <[log in to unmask]> wrote:
> Hey guys,
> I have a script that has to remotely do admin tasks on a Mac workstation. To that end, the shell script command string in the script has the secret password for the admin account in plain text. Is there anyway to hide this (other than locking the script)?
>
> Many thanks,
> Bob R.
The best way to do that is to encrypt the password.
For instance, change each character to its ascii number.
This way it is very simple to decrypt it.
Applescript keeps text as clear text, (just open the script in BBEdit for instance) but numbers are not shown as strings.
Deivy Petrescu
[log in to unmask]