Hacker News new | past | comments | ask | show | jobs | submit

The case of the 9 bit AES key

https://v12.sh/blog/the-case-of-the-9bit-aes-key
"MuPDF versions before 1.28.5 use an implementation of the drand48 family" yeah, ok, so they're basically not doing real encryption. The number of bits in the key space isn't the real story; the keys simply aren't cryptographically random.
What is wrong with software engineers that we keep making really stupid basic mistakes like this? Sometimes I think programming should require licensing and regular testing.
loading story #50282456
This is partly why I'm not too worried about AI slopcode.

The human bar is not that high.

I would much rather have rigorous testing than a filter based on the origin of the code.

I think it's safe to assume anything associated with PDFs is radioactive.
Those are not the "software engineers" but coders, those who like to say that the university degree doesn't add anything in programming.
loading story #50282438
loading story #50282959
loading story #50282269
Does the DMCA still make it illegal to access encrypted content no matter how easy it is to discover the key? https://www.law.cornell.edu/uscode/text/17/1201

Would the new LLM model owners like to strike this down, or use it to demonstrate how dangerous unrestricted models can be?

Rule #1 of rolling your own RNG: don’t.

Rule #2? Please don’t.

loading story #50282431
That's why we use the system RNG !
loading story #50282290
loading story #50282117
loading story #50284435
it's like the weak hardware wallet entropy bug
I assume this is the fruit of AI-driven decompilation? Nice work.
You'd have to be completely off your rocker to use a PDF tool written in C anyway.
very VERY few people judge tools like this by the language used to develop them.
loading story #50281718
loading story #50281984
What are the alternatives?
loading story #50282005
Genuine question, since I'm not very knowledgeable about this: why is using C for a PDF tool such a bad idea?
loading story #50281957
loading story #50282347
loading story #50282303
loading story #50281949