Google News
logo
QTP/UFT - Interview Questions
What is crypt object QTP
Crypt object in QTP is used to encrypt a strings.
 
Syntax : Crypt.Encrypt(“FreeTimeLearn”)
 
Example :
 
In this example, value in pwd variable is encrypted using the Crypt. Encrypt method.
 
Then this encrypted value is entered into editbox.
pwd= “myvalue”
pwd = Crypt.Encrypt (pwd)
Browser(“myb”).WinEdit (“pwd”). SetSecure pwd
Advertisement