bd75or Posted February 26, 2009 Share Posted February 26, 2009 Also was wondering if could give me some advice on this problem im having since you know php thought u might know what to do. I basically created a login system last night which links to backend mysql database using php5. problem im having is i dont know how i would make it so when the user types a password into the password field on the login form, the password itself cant be viewed and is displayed as dots/asterisks. I do not the need password itself to be encrypted in the mysql database so that the administrator cant view the password that is not necessary, all i want is so that it is displayed as asterisks/dots when the user types his password in. I have read up about encryption but cant seem to get it working with my code, and also not sure whether encryption is the answer to my problem as me seeing the password in the database does not matter that is fine, I just want the password not to be visible when a user types it in the password field on the login page. It is worth noting that i manually enter password/users into my database, a registration form does not handle it. Website address: http://sunderlanduni.net23.net/ you will see how the password is displayed in the password field without encryption. Please let me know asap your thoughts Thanks Quote Link to comment https://forums.phpfreaks.com/topic/147036-password-encryption/ Share on other sites More sharing options...
premiso Posted February 26, 2009 Share Posted February 26, 2009 Change the input field type to be type="password" and it will hide it. This does not encrypt it, however. You have to do that on your end in the php code however you want to do it. Whether it is encrypting it or hashing it with md5. Quote Link to comment https://forums.phpfreaks.com/topic/147036-password-encryption/#findComment-771928 Share on other sites More sharing options...
bd75or Posted February 26, 2009 Author Share Posted February 26, 2009 yeah md5 encryption isnt needed for the scale of my project. thx for helping works now Quote Link to comment https://forums.phpfreaks.com/topic/147036-password-encryption/#findComment-771946 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.