set encrypt to true