Thursday, November 18, 2010

The simple way to see plain text form of the encrypted password in QTP

In my previous post I had explained about handling passwords in QTP.

I had written about setSecure method and the password encoder utility provided by QTP.

In this post we will see how to decode this encoded password.

Yes, it is possible to see the encrypted password in plain text format. So, don't store your important passwords in encrypted format also. Instead of storing the password, you can create a simple HTML form and call it from QTP script to show as a pop-up window for getting password from user while executing the Script.

Below lines of code were created while recording the login window of the sample flight application using QTP.

Dialog("Login").WinEdit("Agent Name:").Set "quality"
Dialog("Login").WinEdit("Password:").SetSecure "4ce5631fdebb5762c2878e6f8f735a9d0511b0b7"

Here we can see the encrypted value "4ce5631fdebb5762c2878e6f8f735a9d0511b0b7" for the password "mercury"

But, when I run the QTP script after just changing the code like below, I was able to see the plain text password "mercury" in the Agent Name field.
Dialog("Login").WinEdit("Agent Name:").SetSecure "4ce5631fdebb5762c2878e6f8f735a9d0511b0b7"

More Articles...
You can bookmark this blog for further reading, or you can subscribe to our blog feed.

No comments:

Search This Blog