Update way of encrypting user's password.

Signed-off-by: johnmave126 <johnmave126@gmail.com>