MACSCRPT Archives

March 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Deivy Petrescu <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 6 Mar 2013 15:25:15 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
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]

ATOM RSS1 RSS2