The case of the 9 bit AES key
Posted by ledoge 8 hours ago
Comments
Comment by philsnow 14 minutes ago
Also, I get that a lot of sensitive information is exchanged with PDFs these days, but why should PDFs have encryption built-in to the file format? Sensitive information is also exchanged in image files, word documents, zip files, html, etc etc etc etc. If you take all the work that goes into making the crypto UX decent for one kind of file and apply that to "all files", then each ecosystem doesn't have to invent their own.
This is just like "high-end" car manufacturers insisting on making their own software, and not integrating apple carplay. They're either going to make a truly shitty podcast app, or they're not even going to bother and instead tell people to use bluetooth to listen to podcasts like it's 2006.
Comment by tptacek 6 hours ago
Comment by somat 4 hours ago
Another pet peeve is when people use the rand() when they want hash() but I will leave that rant for another day.
Comment by aidenn0 46 minutes ago
Comment by hansvm 2 hours ago
Comment by NelsonMinar 6 hours ago
Comment by anonymous908213 5 hours ago
Comment by greggsy 4 hours ago
Each with varying degrees of trust. The outcome is never perfect, but that’s not their purpose.
Comment by LeoPanthera 6 hours ago
The human bar is not that high.
I would much rather have rigorous testing than a filter based on the origin of the code.
Comment by hansvm 1 hour ago
Comment by rsalus 6 hours ago
Comment by HackerThemAll 6 hours ago
Comment by anonymous908213 6 hours ago
Comment by adrianN 1 hour ago
Comment by thin_carapace 4 hours ago
Comment by gsich 6 hours ago
Comment by jburgess777 5 hours ago
Would the new LLM model owners like to strike this down, or use it to demonstrate how dangerous unrestricted models can be?
Comment by nextaccountic 1 hour ago
Comment by ubutler 7 hours ago
Rule #2? Please don’t.
Comment by j16sdiz 6 hours ago
Comment by cowlevel 6 hours ago
And if you're a sysadmin, be extremely careful when generating keys in VMs or embedded devices. They tend to overestimate their entropy sources - it's possible that every clone of a VM generates the same keys. In some cases (cough ECDSA) generating the same key and nonce to sign two different messages is catastrophic - it immediately leaks the private key.
Comment by saidnooneever 5 hours ago
-object rng-random,id=objrng0,filename=/dev/null
or maybe just a file that contains 4 :O
Comment by Novosell 4 hours ago
Comment by flanz_10 6 hours ago
btw... im sure there's some legacy rng in windows or some shit that isnt good. read the docs but if it's the blessed system rng, you're probably fine!
although... i suppose if this is news to you (the person reading this), then you probably shouldn't be implementing whatever you are that really requires prng. ask a friend for help. im not trying to be a jerk, i just want to make sure you dont hurt yourself!
Comment by snvzz 1 hour ago
It makes me wonder: Coincidence, really? There's enough there to think that there might be some invisible hand behind it.
Comment by JonChesterfield 7 hours ago
Comment by paulpauper 8 hours ago
Comment by RobotToaster 6 hours ago
Comment by esafak 6 hours ago
Comment by jeffbee 7 hours ago
Comment by advisedwang 7 hours ago
Comment by jeffbee 7 hours ago
Comment by OptionX 7 hours ago
You're confusing just assuming by default its enough for purpose rather than not caring at all.
Comment by j16sdiz 6 hours ago
You can downvote anything not interesting.
If he have list some alternative or give example, it might be interesting.
Comment by cowlevel 7 hours ago
Comment by crote 6 hours ago
Comment by lirolero 7 hours ago
Comment by zamalek 6 hours ago
Same thing applies here. Even Rust has a crate for dealing with binary data, despite its memory promises: https://crates.io/crates/untrusted
It's a fucking minefield, and this is one area where the Rust zealots are undeniably correct. It doesn't have to be Rust, any memory safe language will do, but Rust also happens to be performance competitive and that's usually also desirable.
Comment by tialaramex 5 hours ago
Rust is a general purpose programming language, which is great if your problem might be something never imagined before, but this literally isn't our first rodeo, we have wrangled lots of file formats before, we should use a language purpose-built to do that safely.
Comment by zamalek 4 hours ago
I don't understand how I hit the anti-Rust tripwire here:
> My comment: any memory safe language will do
Comment by tialaramex 4 hours ago
I like 4th edition D&D but if you're trying to make a story about nuanced inter-personal conflict in which there's no actual violence it's just not the right roleplaying system and so I'm not going to agree with your choice to recommend 4eD&D as the system for the story "Love and Jealousy in the Elven Forest"
I've written a whole bunch of Rust, and hardly any WUFFS - but, I wasn't writing code for Wrangling Untrusted File Formats and that's very much what you're doing in a PDF parser.
Comment by jeffbee 3 hours ago
Comment by tptacek 6 hours ago
Comment by cowlevel 6 hours ago
Comment by F3nd0 5 hours ago
Comment by cowlevel 4 hours ago
Comment by tialaramex 5 hours ago
Comment by recursive 6 hours ago