Add generic encryption class