How can I encrypt my passwords so that they are not displayed in clear text in my script ?
Since SilkPerformer 5.1 there is a Project Attribute setting that allows passwords to remain encrypted so that in the script no password information is displayed.
To set-up Project Attributes for passwords do the following :-
1. Choose Project - Project Attributes
2. In the name field give the attribute a name (e.g My_Password)
3. In the Type field choose "password" from the drop-down list.
4. In the Value field enter a password you wish to use in your script.
Now in the script put the following code into a transaction.....
var sPassword : string;
AttributeGetString ("My_Password", sPassword, sizeof (sPassword)); writeln (sPassword);
You can then use the variable sPassword anywhere that it is required in your script.
NOTE: Project attributes are case sensitive