update readme and sample to include encryption