Is it possible to have a show/hide password function in a disabled input field?

I want the user to be able to see their password so that they don't have to reset the password in their Account Overview page.

Thanks for any feedback!

  • 1
    This isn't an answer to your question, but it's dangerous to store passwords in a way that can be decoded on a screen, and your organization should get away from doing that. Here's why. howtogeek.com/434930/…
    – Izquierdo
    Commented Jun 3, 2022 at 17:41

1 Answer 1


This is possible, technically. But I think this is not a good practice as the password will still be fetched from the databases and stored in the browser, which is dangerous.

But on second thought, some systems will actually encrypt the password when it's stored in the database. The readable text will be encoded as a hash, a set of strings. So, I don't think this can be fetched for your hide/show purposes.

  • Thank you for your feedback!
    – Leila
    Commented Jun 4, 2022 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.