reencipher with the appropriate key