Set cookie encryption and key