• 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
Hiding user/password credentials in a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hiding user/password credentials in a script


  • Subject: Hiding user/password credentials in a script
  • From: Jim Skibbie <email@hidden>
  • Date: Sun, 14 Sep 2008 11:18:40 -0500
  • Thread-topic: Hiding user/password credentials in a script

Title: Hiding user/password credentials in a script
I have a script that acts as a library that houses some credentials that allow the scripts to mount certain volumes in our network and do other things that require credentials. The other scripts load this script and then reference properties from it.

For example:

library.scpt
property ServerUser : "testuser"
property
ServerPassword : "testpassword"


Other scripts use the command
set
library to load script file (”library.scpt”)

Then reference the property like:

set mount_path to "afp://" & library's ServerUser & ":" & library's ServerPassword & "@192.168.0.2/mountvolume"

This all works great and it allows me to have one place where the user and password are stored so whenever the password changes, I change it in one place in the library.scpt and all the other scripts keep functioning.

The problem is that the library.scpt can be snooped to get the password. Even if I make the file “library.scpt” run-only, if you open it up in a text editor,  you can see the copy “testuser” and “testpassword” among the gibberish. Not sure if the screen grab will make it through the mailing list.




 Is there a good method for doing something like this where the user credentials are not visible/snoop-able?

Thanks.
Jim
 _______________________________________________
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

  • Follow-Ups:
    • Re: Hiding user/password credentials in a script
      • From: "John C. Welch" <email@hidden>
    • Re: Hiding user/password credentials in a script
      • From: Axel Luttgens <email@hidden>
    • Re: Hiding user/password credentials in a script
      • From: email@hidden
  • Prev by Date: Illustrator position of selection
  • Next by Date: Re: Hiding user/password credentials in a script
  • Previous by thread: Re: Illustrator position of selection
  • Next by thread: Re: Hiding user/password credentials in a script
  • Index(es):
    • Date
    • Thread