Adding encryption functions