What are the technique behind the Password Section in PHP?

February 18, 2019 287 views
PHP Ubuntu

My question is very simple, What is the mechanism behind the Enter password Area, that it, converts all the letters into the dot. or is there any way or mechanism to converts dot into a password. Even copy paste also not worked. I get this Idea while Learning a Form creation from W3school Login Form.

<input type="password" placeholder="Enter Password" name="psw" required>

1 Answer

Hi @sahnisaxena,

Thats exactly how it should be!

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

Will make it show asterisks. You can also check the W3 site about this.

  • I got the point that this is all about the hinding a senstive data, but my question is How. or is there any mechanism to reverse it.

    • Its developed within HTML. There are alot of different input types and this is one of them.

      This however doesn't that your password is "secured" or something when you fill this in. If you want to save this password somewhere, or check it; You will still have to process it (for example with php) and hash it for example.

    • Reversing it often comes up when someone has forgotten their password but has it saved with their web browser. In such a case, you can go into the configuration settings for your browser and locate the saved passwords. In Chrome, for example, it's Settings > Passwords.

Have another answer? Share your knowledge.