182x Posted July 14, 2007 Share Posted July 14, 2007 Hey guys, For logging into a website and creating users I use the following encryption, I was just wondering can the '.v' parameter be anything and is this a good method of encryption? Thanks crypt($_POST['password'], '.v') Link to comment https://forums.phpfreaks.com/topic/59921-password-encryption-crypt/ Share on other sites More sharing options...
chronister Posted July 14, 2007 Share Posted July 14, 2007 The .v is called the salt. I am not completely clear on what purpose the salt serves. Yes it can be anything. If you just use crypt($string) then it will auto-generate a 2 digit salt. Yes is is a good method of encryption. Be aware that it is a one way encryption and cannot be decrypted. But you don't want passwords to be decrypted anyway. hope this helps Link to comment https://forums.phpfreaks.com/topic/59921-password-encryption-crypt/#findComment-297990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.