News for hackers. Stuff that matters.
Re:Tell HN: ChatGPT Can Decode Base64 by Supply5411 on Thursday September 21, 2023 @03:07PM (#37602485)
>Algorithmically it seems to be a 8-bit byte to character mapping

Base64 is 6-bits, so there is no mapping of a single character to another single character. Changing 1 character in the input can change 1 or 2 characters in the output because each of the 6-bit "characters" are up against each other. So there is no mapping of input character to output character(s), it depends on context.

I'm aware that regular NL translations are a similar problem, but with base64, it's a much more exact and unforgiving problem, and GPT-4 seems to perform at a very high level.

Re:Tell HN: ChatGPT Can Decode Base64 by usgroup on Thursday September 21, 2023 @06:28PM (#37605303)
Ok I see, but that doesn't strike me as different in kind, is it? I.e. bytes to 6-bit sequences for which there is a mapping table. Now you have a string of 6 symbol sequences. Then divide the string into 8 symbol sequences and map each to a character (again via mapping table). Ignoring padding rules, its two mappings, one followed by the other?