Added password encryption algorithm