Posts: 26
Threads: 8
Joined: Jun 2009
Reputation:
0
07-14-2009, 08:48 PM
Hi All
I need to get visible text from a password edit box. But the text is coming up in an encrpted format how can i un encrrpt the text? so i can check if i have the right password in box.
thanks
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
07-14-2009, 10:56 PM
There is no way we can "decrypt" the passwords generated. I guess this will fail the basic purpose of having pwds.
I can suggest you a simple solution though:
Just check whether you are able to go to the next screen after entering password or check if there is no error message after entering pwds. if there is either of two, you can be sure that you have entered the right password.
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-15-2009, 11:54 AM
Hi QTPgrd,
i am sorry to say that the LOC that you specified won't workout. As the value will return empty. so, i will agree with Ankur in this regard.
Thanks,
SUpputuri
Posts: 44
Threads: 1
Joined: Jun 2009
Reputation:
0
07-15-2009, 12:12 PM
Hi QTPKing,
The script provided by QTPgrd is working fine for me. I didn't find any discrepancies in the value returned.
Thanks,
Posts: 4
Threads: 1
Joined: Jul 2009
Reputation:
0
07-15-2009, 04:30 PM
Dear Laura
Answer replied by QTPGRD is 100 % right,I have used that in so many pages.
Posts: 26
Threads: 8
Joined: Jun 2009
Reputation:
0
07-15-2009, 05:17 PM
Really? I tried it and all am getting is an empty msg box.
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-15-2009, 06:18 PM
Hi friends,
Let us see indetail.
1) If you are entering a password with 4 chars like "P@ss" then the encrpty will be "4a5dcde055cbebeecd93bb8628e0" i.e. 28 charecters
2) when you enter the same 28 charecters using setsecure we can see only 4 chars in Password field.(****)
3) When you get the visible text or value from password edit box then there may be 2 cases
Case:1: We won't get any value (as specified by me in previous post)
Case:2: if at all we got the value the number of char's will be 4 only. Though the number of chars are 4 they not either "P@ss" or "a5dcde055cbebeecd93bb8628e0".
So guys, QTPian and sharingwilddreams please let me how i am wrong and let me know if i am going in wrong way.
Thanks,
SUpputuri
Posts: 4
Threads: 1
Joined: Jul 2009
Reputation:
0
07-15-2009, 06:27 PM
Lets clear the confusion.
Answers posted by me and other guy was on the issue abt masked characters,thats the password getting hidden using asterisks or something like that. If this is the case,what answer he has given is right. Encryption and Decryption of passwords r out of the context.