I could do padding. Do you have a good reason you want that rather than an error?
I'm writing the testcases now. I'm also not sure how to deal with wide strings in string2hex. I think that should also be treated as an error (unless there's some extra argument saying how many digits per character you want in the output). What's the easiest way for a pike program to signal an error if it gets a string with wide characters?
/ Niels Möller ()
Previous text:
2003-03-12 17:24: Subject: nettle.cmod
string2hex and hex2string is ok by me. Don't throw an error for uneven lengthed hex strings though. Pad them instead.
/ Martin Nilsson (har bott i google)