Adds a decrypt method to the encryptor and makes the code more efficient