2008/6/4 Robert Greig <[EMAIL PROTECTED]>: > 2008/6/4 Robert Greig <[EMAIL PROTECTED]>: > > > >> I've attached a small snippet that I'm going to work into a proper > >> test case for when I file the bug, the output should be > >> ff724187be5f9d4df6fd93a7dce660c9 > > > > In your sample program, why do you convert your password into UTF-8 > > bytes - which makes your byte array 21 bytes long due to the > > particular chars you chose? > > > > If you encode into an 8 bit characterset like ISO-8859-1 you get the > > result you expect. > > My turn to reply to myself - UTF-8 is apparently the recommended > approach now for encoding > (http://www.imc.org/ietf-sasl/mail-archive/msg00517.html). >
Yep - looks like the UTF-8 encoding is correct ( http://tools.ietf.org/html/draft-ietf-sasl-crammd5-09 for the full proposal)... Learn something every day.... Guess the onus is on us to get the .net doing the right thing then... -- Rob
