Fixed test encrypt/decrypt tools.