Add encryption functions