First working, not tested version of the encryptor