Remove duplicate 'toHex' function in EncryptionUtil

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>