parameters: (token)
docstring: From a given token, return the initial password.
  
      If the token is tilde-separated, we decrypt the password fetched from Redis.
      If not, the password is simply returned as is.
docstring_summary: From a given token, return the initial password.
docstring_tokens: From a given token return the initial password .
function: def get_password(token):
      """
      From a given token, return the initial password.
  
      If the token is tilde-separated, we decrypt the password fetched from Redis.
      If not, the password is simply returned as is.
      """
      storage_key, decryption_key = parse_token(token)
      password = redis_client.get(storage_key)
      redis_client.delete(storage_key)
  
      if password is not None:
  
          if decryption_key is not None:
              password = decrypt(password, decryption_key)
  
          return password.decode('utf-8')
function_tokens: def get_password ( token ) : storage_key , decryption_key = parse_token ( token ) password = redis_client . get ( storage_key ) redis_client . delete ( storage_key ) if password is not None : if decryption_key is not None : password = decrypt ( password , decryption_key ) return password . decode ( 'utf-8' )