Creating method for encrypted password