|
I think they are both fine to use - a more secure method would be to create a generic salt by a random generated number, and then append users password to new salt, encrypt it, and then place the new salt on the right with a split char. This would build a different encryption each time, but would be equal each time its decrypted.
I'm creating a site in which I use MD5 to encrypt db passwords, and use SHA to encrypt the password in the cookie on the users side.
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|