def format_password(salt, hash):
    """
    Format a password entry for the SCryptPasswordHasher.
    """
    algorithm = "scrypt"
    Nlog2 = 15
    r = 8
    p = 1
    return "%s$%d$%d$%d$%s$%s" % (algorithm, Nlog2, r, p, salt, hash)