Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Reveal the password in a password field on a web page Web Browsers
If you're ever in the situation where you have forgotten the password for some web site, but it is right there in the password field of the login form -- only in the form of asterisks or bullets -- and you would like to copy it from the password field, if only it were not asterisks...well, you can.

You can convert the password field to a plain text field, which will reveal the password behind the asterisks. To do so, you will need to use your browser's web inspector. The following is the procedure for Safari; the steps are similar in Google Chrome.
  • Right-click the password field and select 'Inspect Element' in the context menu. This will open the web inspector and highlight the HTML tag for the password field.
  • The highlighted line should contain something like this:

    <input type="password" name="something">

    (Don't worry if it doesn't look exactly like that. As long as the HTML tag contains the type="password" part, you can proceed.)
  • Double-click the word "password" following "type=". This will let you edit the text.
  • Replace the word "password" with the word "text", and press Enter. Now the tag should like this:

    <input type="text" name="something">
You should now be able to see the password in the password field. You can close the web inspector if you wish.

If this seems like a lot of work, an altenative is to install and use a browser extension that will reveal passwords when you do something like move the mouse over them or click inside them. For Safari, one such extension is ShowPass; similar extensions exist for Firefox and Google Chrome.

[crarko adds: I tested this, and it works as described. I used Safari 5.0.4.]
    •    
  • Currently 4.10 / 5
  You rated: 1 / 5 (10 votes cast)
 
[48,102 views]  

Reveal the password in a password field on a web page | 13 comments | Create New Account
Click here to return to the 'Reveal the password in a password field on a web page' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reveal the password in a password field on a web page
Authored by: fracai on Mar 31, '11 08:40:37AM

Unless you forget your password immediately after typing it, wouldn't it be easier to just open the Keychain and find the password there? Firefox has its own password store, but will reveal passwords there as well.

---
i am jack's amusing sig file



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: mantrid on Mar 31, '11 09:13:32AM

Well yes, the keychain would be easier if it's your computer. On the other hand, if you're on somebody else's computer and don't know their keychain password, this is much easier!



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: macnixer on Mar 31, '11 11:28:49AM

I would not like to save my password on someone else's machine. It would be stupid to do so.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: mantrid on Mar 31, '11 04:11:35PM

Wow, I'm sorry but WHOOOSH!



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: andrew_zinn on Mar 31, '11 09:58:55AM

I find searching through my length keychain to find a website to be a hassle. I have multiple other layers of security (screensaver, login, etc.) and am not worried about others seeing my password. Thanks for this hint, especially the Showpass extension.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: macnixer on Mar 31, '11 11:34:21AM

Keychain has a search field and it can filter data fast for you. I use my keychain heavily with search.

This hint is very interesting if you just want to know your password without a visit to the Keychain, other than that it also shows the security threat in the system. I will not allow anyone on my machine anymore with my login - even for a minute. Switch to guest and have your own glorious time.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: Frederico on Mar 31, '11 12:13:30PM

I find the Search Keychains (Spotlight) feature in Keychains to be stunningly precise in its ability to use disparate keywords and I can find a given key in seconds.

Command-Space; type 'keych'; press enter; focus is already on Search Keychains; type partial root domain and/or part of account name; press enter; get results. Easy peasy.

Definitely not faster than ShowPass and the like, but I've gotten over the want to add reams of extensions and troubleshooting it brings along with it.

However, this hint is not reflective of my usual need for Keychain Access; that is generally when a website presents me with a new page or design where my Keychain/Safari fails to recognize the request and I have no clue what to enter at all.

I don't know how useful this hint is for an honest user, but it is certainly disconcerting to realize how simple a keychain can be overridden if you have access to the screen; this is something I will have to advise additional users who share accounts.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: andrew_zinn on Mar 31, '11 01:17:13PM

Searching keychains with Spotlight is a great hint in and of itself. Thanks!



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: wreleven on Mar 31, '11 10:49:54AM

Keep in mind any well designed web page will not actually have the real password in the •••••••• password field after submission.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: jyu on Apr 01, '11 06:54:36AM

Good hint. It reveals how dangerous it is to share your computer with someone else, or if you use someone's computer, how easy to know their secret words.

BTW, this hints also work for Firefox, if the Firebug extension is installed.



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: ambrose on Apr 01, '11 10:23:37AM
For at least the past five years, I've used the javascript code below--I cannot remember where I found it--to perform the same function. The code is referenced by a bookmark in my browser's bookmark bar, and a click on the bookmark reveals the obfuscated password in plaintext. I have found the ability to perform this function essential in recovering passwords which were stored in Safari's Autofill database, but not in a keychain. javascript:(function(){var%20s,F,j,f,i;%20s%20=%20%22%22;%20F%20=%20document.forms;%20for(j=0;%20j%3CF.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i%3Cf.length;%20++i)%20{%20if%20(f[i].type.toLowerCase()%20==%20%22password%22)%20s%20+=%20f[i].value%20+%20%22\n%22;%20}%20}%20if%20(s)%20alert(%22Passwords%20in%20forms%20on%20this%20page:\n\n%22%20+%20s);%20else%20alert(%22There%20are%20no%20passwords%20in%20forms%20on%20this%20page.%22);})();

[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: hj45lp on Apr 06, '11 11:34:36AM

Good one, thank you!



[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: gvitale on Apr 03, '11 04:26:38AM

This is a VERY serious security bug in Safari that badly needs to be fixed…
Good to know though.



[ Reply to This | # ]