First version of encryption class