added encryption class