Added encryption code and encryption examples