Added Crypt class for decryption and decryption part and moved the generatorsfunctions to the class