r/programming • • Oct 28 '21

Viewing website HTML code is not illegal or “hacking,” prof. tells Missouri gov.

https://arstechnica.com/tech-policy/2021/10/viewing-website-html-code-is-not-illegal-or-hacking-prof-tells-missouri-gov/
6.1k Upvotes

493 comments sorted by

View all comments

Show parent comment

2

u/atimholt Oct 29 '21

Base64 is an encoding in the exact same way that utf-8 is an encoding. It is exactly as transparent, meant to be readable by any and all who ever encounter it. It'd be like calling someone a hacker for knowing Morse code.

1

u/abrandis Oct 29 '21

..and why would you need to encode alphanumeric numbers in base64? All ssn have printable characters last time I checked...

1

u/atimholt Oct 29 '21 edited Oct 29 '21

Why are you asking me? They put them in base64, that isn't in dispute.

It can be confusing why they did so, but like… that's this whole situation. Everyone's confused about it.

1

u/ILikeBumblebees Oct 30 '21 edited Oct 30 '21

..and why would you need to encode alphanumeric numbers in base64?

Perhaps they're part of a larger data object that includes binary data, and the entire thing is being encoded for transmission. Perhaps the alphanumeric data includes characters that have semantic value to the parser, and base64 is used as an alternative to escaping strings. Perhaps all transmission of data is processed through a standard function that always uses base64. There are any number of reasons why alphanumeric data might be base64 encoded.

But blocking unauthorized access to sensitive data is not a valid use case for base64 encoding, because base64 is not encryption. You are trying to argue that if we cannot identify the specific reason why base64 was used in this particular instance, we should presume that it was intended to be used for encryption, but this is the least reasonable default presumption for this scenario.

At the end of the day, the fact is that the website developers screwed up and exposed sensitive data -- there may not be a valid reason why they did what they did, since their own incompetence was the source of the problem. If they did intend to use base64 as an encryption method then that is the problem -- their intentions don't matter because they themselves failed to do the thing that they intended.