Add EncodeAndEncrypt