added example for encryption