Possible Duplicate:
Secure hash and salt for PHP passwords
THREE part question:
- Which technique I should use to store a password? (sha1, sha256/512, etc.)
- What is the ideal size of a salt?
- What should i use ? - $passwordHash = hash('ENCRYPTION',$salt . $password);- or - $passwordHash = hash('ENCRYPTION',$password . $salt);
I intend to store forum passwords only. I am not storing bank credentials or any other highly sensitive items. It should be fast and not rocket science.
 
     
     
     
     
    