def GetPassword(user):
 s = secrets.GetSecret(_PasswordName(user))
 try:
  return json.loads(s)
 except ValueError:
  return dict(version=_PASSWORD_VERSION_MD5, hashed=s)

def GetPassword ( user ) : s = secrets . GetSecret ( _PasswordName ( user ) ) try : return json . loads ( s ) except ValueError : return dict ( version = _PASSWORD_VERSION_MD5 , hashed = s )
returns the encrypted user password from the secrets database .