Crypt Object
Description
The object used to encrypt strings.
Methods
Encrypt | Encrypts a string. |
Encrypt Method
Description
Encrypts a string.
Syntax
Crypt.Encrypt(Data)
Argument | Type | Description |
---|---|---|
Data | String | The string to encrypt. |
Return Value
String
IMPORTANT
The Encrypt method does not use a global standard for encryption. It is not considered nor intended to be secure.
Its purpose is only to ensure that passwords are not be readily visible on the screen while recording, editing, or running a test or component.
If you are using real customer data or other sensitive information, you should take additional steps to ensure the security of that data.
In the following example, a password is taken from a database and encrypted using the Encrypt method, and then placed in the password edit box using the SetSecure method.
pwd = "GetPasswordfromSomewhere"
e_pwd = Crypt.Encrypt(pwd)
Browser("dfgd").Dialog("pass").WinEdit("pwd").SetSecure e_pwd
See also:
- Crypt Object
- DataTable Object
- Description Object
- DeviceReplay Object
- DotNetFactory Object
- DTParameter Object
- DTSheet Object
- Environment Object
- Extern Object
- Parameter Object
- JSON Object
- JsonUtil Object
- MercuryTimers Object (Collection)
- MercuryTimer Object
- NV Object
- OptionalStep Object
- ParallelUtil Object
- LocalParameter Object
- PasswordUtil Object
- PathFinder Object
- PDFUtil Object
- Properties Object (Collection)
- QCUtil Object
- RandomNumber Object
- Recovery Object
- Remote Connection Object
- Reporter Object
- RepositoriesCollection Object
- Repository Object
- Services Object
- Setting Object
- SystemMonitor Object
- TestArgs Object
- TextUtil Object
- UIAutomation Object
- VisualRelation Object
- VisualRelations Object
- VisualRelationsCollection Object
- WebUtil Object
- XMLUtil Object