Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/l/u/lusernews-HEAD/src/api.py   lusernews(Download)
        salt = g.user.get('salt', util.get_rand())
        r.hmset("user:" + g.user['id'], {
                "password": util.hash_password(password, salt),
                "salt": salt
                })

src/l/u/lusernews-HEAD/src/user.py   lusernews(Download)
            "username": username,
            "salt": salt,
            "password": util.hash_password(password, salt),
            "ctime": now,
            "karma": config.UserInitialKarma,
def check_user_credentials(username, password):
    user = get_user_by_name(username)
    if not (user and user.has_key('password') and \
                user['password'] ==  util.hash_password(password, user['salt'])):
        return None, None