• 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: Password Protected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Password Protected


  • Subject: Re: Password Protected
  • From: JJ <email@hidden>
  • Date: Wed, 14 Nov 2001 04:04:32 +0100

> Hi theree people,
> I'm curious about a way to protect my script. I know that I can put a
> password set statement like so:
>
> set this_password to "make up a word"
> considering case
> repeat with i from 1 to 3
> display dialog "Enter password:" default answer ""
> if the text returned of the result is this_password then exit repeat
> if i is 3 then return "access denied"
> end repeat
> end considering
>
> NOW, if I do a save as command of this script (not the orginal) and save it
> as a RUN ONLY file. Can this script still opened by any other user? Or maybe
> a professional?

If you save as RUN-ONLY, it maybe a professional, Merlin the Magician,
Gandalf the Sorcerer or David Copperfield.

(but, if I open your example using a rsrc editor, I can see all the strings
"make up a word","Enter password:" & "access denied").
You should try alphanumeric combinations, such as:

set this_password to ((3 * 12 / 17) as text) &
(ASCII number (item -1 of {"sox", "pippi"}))

But it could be cracked by Gandalf. Take consideration about THE DATA EXISTS
SOMEWHERE -the scpt rsrc-, and the key to decode it is stored too -in your
script: "make up a word"-. That's because big developers, such as
adobe-macromedia... -Apple!- lose money.
The only way to preserve your info is that doesn't exists THE KEY. I.e., a
self-contained doubt:

property parent : missing value
repeat while parent  true
set be_or_not to me
end repeat

JJ


  • Follow-Ups:
    • Re: Password Protected
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: FileMaker: OT
  • Next by Date: Re: Crontab v. Applescript & Command Line
  • Previous by thread: Password Protected
  • Next by thread: Re: Password Protected
  • Index(es):
    • Date
    • Thread