generate_secured_api_key php