Crypt Object in QTP is used to Encrypt a strings.
Syntax
Crypt.Encrypt("abcd")
Example
In below 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
Please note that to enter secure value you must use Setsecure method Else you can use Set method.
Thus
Crypt Object in QTP is used to Encrypt a strings.
Syntax
Crypt.Encrypt("abcd")
Example
In below 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
Please note that to enter secure value you must use Setsecure method Else you can use Set method.
Thus
Crypt Object in QTP is used to Encrypt a strings.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs