pass content type to encrypt and decrypt