Finished encryption functions.