Add encrypting functionality