def encrypt_password(password):
 if (_security.password_hash == 'plaintext'):
  return password
 signed = get_hmac(password).decode('ascii')
 return _pwd_context.encrypt(signed)

def encrypt_password ( password ) : if ( _security . password_hash == 'plaintext' ) : return password signed = get_hmac ( password ) . decode ( 'ascii' ) return _pwd_context . encrypt ( signed )
encrypts the specified plaintext password using the configured encryption options .