• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Run-Only script in OSX 10.2.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run-Only script in OSX 10.2.6


  • Subject: Re: Run-Only script in OSX 10.2.6
  • From: Andrew Oliver <email@hidden>
  • Date: Fri, 16 May 2003 10:30:18 -0700

On 5/13/03 11:38 AM, "Arntzen, Jon W" <email@hidden> wrote:

> I am trying to write a script that needs to be run-only (it contains a
> password I do not want everyone to see)

Assuming you're storing the password as a property, and even taking into
account Rob's 'strings' trick, this isn't a foolproof way to go.

All properties are visible to external scripts. Consider the following:

-- 'protected' script:
property password: "mysupersecretword"

-- rest of code goes here


-- 'cracker' script:

set protectedScript to load script "path:to:protected script"

protectedScript's password
--> "mysupersecretword"

Doh!

The easiest way around this is to store the password in an encrypted state
within the script and decrypt it as and when the password is needed. It
doesn't prevent either the use of 'strings' or other scripts getting the
properties, but at least it doesn't hand the password out on a plate.

Andrew
:)
_______________________________________________
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.

  • Prev by Date: Re: Folder Labels in OS X?
  • Next by Date: Re: Folder Labels in OS X?
  • Previous by thread: Re: Run-Only script in OSX 10.2.6
  • Next by thread: Re: Run-Only script in OSX 10.2.6
  • Index(es):
    • Date
    • Thread