Allow only hex string for the ky.