unfinished encrypt and decrypt functions