When using the password field type in HTML, the data is encrypted before it is sent to the server. code example
Example: how to create password input in html
<input type="password" name=""value="">
<input type="password" name=""value="">