I'm building the login part of a CodeIgniter app using the simple login class as the starting point. It's all working fine, but I'm unsure of the differences between the encryption types, and which to use.
I've gone for using the crypt() function with the user's password as the salt (via md5), like so:
$pass == crypt($_POST['login_password'], md5($_POST['login_password']))
Is this method ok, or is there a glaring error in that approach? This seems secure as neither password or salt are stored in the database. Or is it a bit obvious?
Thanks in advance.