Set cookie encryption type and key