- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Whoa, wait, am I frist?
Admin
They even sorted the byte indices asciibetically! Just in case some silly human wanted to read them out in numerical order.
Admin
I don't know what you're complaining about. It's XML, so not only is it human readable, but it is also self-documenting!
Admin
Now THIS is hot! [image]
Admin
Because Everybody knows that if you are going to store something, it must be in XML, and that XML is the most human readable way to store configuration data.
Though that gives me an idea - we base-36 encode the key, then output it using http://en.wikipedia.org/wiki/NATO_phonetic_alphabet. That would make the key perfectly human-readable!
Admin
They should wrap the XML in inside another XML envelope for even more readability.
Admin
Admin
My eyes, the goggles do nothing!
Admin
You were, but comments will be alphabetically ordered in the future, and yours will be almost last.
Admin
No WTF unless someone actually claimed it was human-readable. XML is not just for human-readability.
This just looks like someone passed a byte array to a generic xml-serializer. An easy way to save config. Who cares?
Admin
The WTF is an XML serializer which stores a byte array with dozens of elements instead of storing it as a single base64 encoded string.
Admin
Anyone who has a preference for non-retarded design patterns should care.
"Well it's easy and it works" should never be the only justification for using a specific method.
Admin
That's the problem with encryption in general. It just makes everything unreadable. rimshot
Admin
So Arist will be the new Frist? Aristotle will be so proud.
Captcha: damnum, those guys who didn't put the IDs in binary before sorting.
Admin
Why not? If its easy and it works...
Admin
Wow, that has got to be the dumbest thing I've seen in a long time. Actually, perhaps this is too hard to read.
H o w
i s
t h i s ?
Admin
Admin
I'm just dying to stay relevant!!!
Admin
Am I the only one who spotted collisions??
<e id="186">42</e> <e id="187">-122</e> <e id="188">72</e> <e id="189">-122</e> <e id="19">48</e>
I sincerely hope that the representation is ONLY used for human readability, and not used in any form of identification / sanity check....
Yours Yazeran
Plan: To go to Mars one day with a hammer
Admin
Whoa you're fast! I only just finished reading the whole damn thing.
Admin
Admin
captcha: illum. I feel illum after reading that...
Admin
Byte array size: 876 bytes. Document size: ~22,000 bytes
But, if you compress it, then it's only ~3600 bytes! And probably just as informative.
Admin
All your encryption key belongs to us
Admin
Don't they have JSON utilities for this?
Admin
A 22KB config file on a machine that runs VMWare? That's outrageous!
Admin
The real WTF is that the whole thing fitted in the body of the WTF article. :)
Admin
I'm perfectly aware that the keys are unique, but by fear is that somewhare in the application/use of the application the VALUES are used and compared against each other, hence my comment about collisions.
Yazeran
Plan: To go to Mars one day with a hammer
Admin
That's SO right! And then they should use encryptStr() on it just to be extra sure it's secure.
Admin
Admin
I wouldn't make any assumptions about how the sort of people responsible for making something like this would wind up using it.
Admin
Well The way I read th article, then the whole point about this list is to used for human readability, and in that case, why do that if not to let humans view / compare the resulting strings manually????
Yazeran
Admin
Admin
Admin
Hammertime!
Admin
Admin
Admin
I don't think this was the encryption key. No, that's the actual encrypted data. It is transmitted in a non-sequential fashion precisely so you can't read it.
Admin
TTWTF: Someone posted their company's encryption key?
Admin
That's okay, no one can read it anyway
Admin
What is this, I don't even...
Admin
Doesn't it seem odd that there are twice as many positive values (575) as there are negative (294)?
They should either be roughly equal, if the data is pure binary, or 100% positive, if the key is all ASCII.
Admin
FYI, the encoded data is an X509 certificate.
Admin
OK, before everyone laughs themselves to death - this is the raw dump of a SOAP-encoded byte array.
Admin
Admin
The real WTF is XML. amirite?
Admin
Admin
rot13 will beat the NSA any day
Admin
Both my grandmothers are dead, you insensitive clod. Have a bit of respect.
Admin
Good one.