Re: protecting passwords in properties
Re: protecting passwords in properties
- Subject: Re: protecting passwords in properties
- From: deivy petrescu <email@hidden>
- Date: Sat, 22 Mar 2008 13:59:29 -0400
On Mar 21, 2008, at 12:04, Vince Angeloni wrote:
Axel,
Yes, it will contain the encrypted password and the passkey, but if
the passkey is generated entirely with script, wouldn't that script
be obscured by making the app "run only"? I was thinking that I
could use something like:
set passkey to ""
set passkeySource to "asdfghjkl"
set passkey to text item 2 of passkeySource & text item 5 of
passkeySource & item 3 of passkeySource ... etc ...
and since this is presumably made inaccessible by "run only", I
thought this would be "safe".
However, this may be a moot point since I am liking your idea of
configuring sudo to allow use of the "shutdown" command by all
users. That *would* be a lot simpler and not put my admin password
at risk! I did not know that you could do this.
I think that would be the way to go. Now I just have to find out
how... (I have a few unix books I can look at...)
Thank you. That was a very helpful suggestion.
vince
Vince,
I way I managed to put a password in a script and to keep it invisible
was by using the following;
---
property password :""
if password is "" then
set theAnswer to text returned of (display dialog "Password:" default
answer "")
set password to {}
repeat with a in theAnswer
set end of password to ascii number of a
end
----
to use the password you convert the list into a string
----
set p to ""
repeat with a in password
set p to p & ascii character a
end
-----
At the end of the execution you convert the string into a list of
numbers again.
Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden