encryption and decryption added but currently saving to directory