Made en- and decryption work