Re: Challenge "Alice's birthday party (Part 1)" ¶
By: Joost on Jan. 2, 2014, 6:22 p.m.
no, sorry, thats a mistake and not intended.
Openssl was used to encode the string in base64 and it appended a "new line" at the end. Nevertheless, even then it is wrong because then is should be 0a at the end.
Sorry for the confusion. I will fix it.
The example hasn't been corrected yet right? Because Base64("Beispieltext) is "QmVpc3BpZWx0ZXh0" while Base64("Beispieltext\n") is "QmVpc3BpZWx0ZXh0Cg==". I guess a newline got appended before base64 encoding?
Indeed. It has not been corrected as of yet.
There's a newline being appended before and after encoding. The second one is appended as 'A' (i.e. decimal 10, the ascii value of the newline) to the hex string, and the first one is appended as an actual newline to 'Beispieltext'. Had me confused for a bit as well, and is probably still worth fixing. [HTML_REMOVED]