News for hackers. Stuff that matters.
Re:TIL that You can spot base64 encoded JSON, certificates, ... by appreciatorBus on Tuesday August 05, 2025 @05:45PM (#44804795)
That’s really a leap about the writer’s interest.

They could just as easily have felt the underlying reason was so obvious it wasn’t worth mentioning.

I know how base64 encoding works but had never noticed the pattern the author pointed out. As soon as read it, I ubderstood why. It didn’t occur to me that the author should have explained it at a deeper level.

Re:TIL that You can spot base64 encoded JSON, certificates, ... by tharkun__ on Tuesday August 05, 2025 @08:02PM (#44806045)
Is it? In the first paragraph the author clearly shows his ignorance of base64. When told that it "looks like base64 encoded JSON" he

    was incredulous but gave it a go, and it worked!!
Even if you don't notice the ey specifically the string itself just screams base64 encoding, regardless of what's actually inside.
Re:TIL that You can spot base64 encoded JSON, certificates, ... by appreciatorBus on Tuesday August 05, 2025 @08:46PM (#44806373)
TBC I was addressing the parents suggestion that the writer was incurious.

One blog post is hardly enough to just someone as ignorant but after quick look at the author's writing/coding/job history, I doubt he is that either.

I think it's fantastic that you can look at a string and feel it's base64 essence come through without a decoder. Thinking about it for a minute, I suspect I could train myself to do the same. If someone who already knew how to do it well wrote a how-to, I bet it would hit the front page and inspire many people, just like this article did.

I just don't get the urge to dump on the original author for sharing a new-to-him insight.

Re:TIL that You can spot base64 encoded JSON, certificates, ... by creatonez on Tuesday August 05, 2025 @09:35PM (#44806697)
They were probably expecting base64 encoded binary data. Base64-encoded-binary-inside-Base64-encoded-JSON-inside-JSON is a really strange construction if you haven't encountered it before, because of how much space it's wasting playing a game of Russian nesting dolls.
Re:TIL that You can spot base64 encoded JSON, certificates, ... by fc417fc802 on Wednesday August 06, 2025 @01:23AM (#44807990)
Just add a layer of compression periodically to reclaim the wasted space and it will all work out.
Re:TIL that You can spot base64 encoded JSON, certificates, ... by throwaway4496 on Wednesday August 06, 2025 @08:07AM (#44810883)
If you have a compression that works on encrypted data, you can avoid wasting your time on the "encryption".
Re:TIL that You can spot base64 encoded JSON, certificates, ... by fc417fc802 on Wednesday August 06, 2025 @08:40AM (#44811192)
Base64 isn't encryption. The overhead added follows an extremely predictable pattern. That said I've no idea what the performance of common compression algorithms might be in such a use case. The comment was entirely tongue in cheek.
Re:TIL that You can spot base64 encoded JSON, certificates, ... by throwaway4496 on Thursday August 07, 2025 @01:44AM (#44821002)
I apologise for my mistake. Either the comment got edited or I misread encryption somewhere in there.