# Usage secret_key = "my_secret_key_here" user_id = 123 key = generate_key(secret_key, user_id)