Implemented SECRET_KEY generation