Re: string literals passwords in run only applications
Re: string literals passwords in run only applications
- Subject: Re: string literals passwords in run only applications
- From: Jon Pugh <email@hidden>
- Date: Tue, 26 Feb 2002 00:05:13 -0800
At 10:20 PM -0500 2/25/02, email@hidden wrote:
>
set l to {}
>
repeat with N from 1 to 100
>
encrypt the text "ABC" with password N
>
set end of l to result
>
end repeat
>
l
Small passwords and text runs are hard to encrypt. Try this:
set l to {}
repeat with N from 1 to 32565 by 256 * 32 -- too lazy to compute it
encrypt the text "now is the time for all good weasels to come to the aid of marketing" with password N
set end of l to result
end repeat
l
It produces:
{
"~q&e%qkf2f}ya$w~t&m`i%dl}v4caebtju,xj%`lw4`k$eyc&mea%le2ufoaexha",
"vir#av3`{w gis$~iw#ii4t}ow6ssekcip(q|4p}mv6py$ln`#ilw4|t ~wv}alokd",
"gb3|3fhp2azy`$nka2mq~6rlza4kawwh~u=wy&`}h}<`y\"ykc0bzb%}r8cuuimwx~r",
"|cr#|s3for2a|gp%jsq2aa~5p|zb*c`uop~s-wz'p}kr4`{.ake8b{c=}s7guteqw{vb"
}
Much more robust, and it's still using lame passwords. Longer passwords help. I don't know exactly how long for this particular implementation.
Jon
_______________________________________________
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.