Changed encryption class to module