fixed octal conversion for SECRET_KEY_SECURE_MODE