changed secret_key to enc dbag