Jump to content

[SOLVED] hiding password


ball420

Recommended Posts

md5 is for if somebody manages to hack into where you store your clients/customers/members passwords, that they will not be able to read the passwords or be able to use them for anything worthwhile. The security of md5 is debatable though as some claim they can decrypt it, but i am yet to see proof of this or see it for myself.

 

If you want your page to be truly secure, like maybe if users are submitting sensitive info, such as credit card details, you need to look into SSL.

so what's the differance? and how would i put that in the code jsut to make sure i'm on the right page

 

<?php

 

 

$host=localhost; // Host name

$username=tony; // Mysql username

$password=billy; // Mysql password

$db_name=test; // Database name

$tbl_name=clearbook; // Table name

 

 

 

?>

 

 

ball420:

everyone here is talking about hashing the users password (aka members of your site), i know you wish to hide the password stored for accessing the database, the fact is.. the way you have it is fine. of course you can improve on it but 97% of php coders do what you are doing with the password, just storing it in a config.php file,

 

just say you used the best encryption in the world.. you will need to decrypt it to use it.. so it would be the same as having the password stored as is.

 

 

 

Note: 97% was picked out of thin air

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.