Discussion Locked

Hide/mask JavaScript password

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how do i hide the password
when it is input via the prompt dialogue. So as not to allow others around
to see the password.

2 replies

by nikki96

You don't. Anyone can look at client side text. You can obfuscate it, but anyone can just deobfuscate it.
Javascript is not for passwords. Use .htaccess or some other server-side method of verification.

This discussion is closed to new replies.