encode of encrypted puff