@check_redis_alive
def get_password(token):
    '\n    From a given token, return the initial password.\n\n    If the token is tilde-separated, we decrypt the password fetched from Redis.\n    If not, the password is simply returned as is.\n    '
    (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')
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.
@check_redis_alive
def get_password(token):
    '\n    From a given token, return the initial password.\n\n    If the token is tilde-separated, we decrypt the password fetched from Redis.\n    If not, the password is simply returned as is.\n    '
    (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')