setting and secret key