Fixed encryption class