News for hackers. Stuff that matters.
Re:RSA is deceptively simple (and fun) by sacrosanct on Thursday January 18, 2024 @02:33PM (#39046457)
As a rule of thumb, pay attention to crypto parameters and cipher 'suites'. Use the highest SHA, use seven word diceware phrases for the password, ensure the latest TLS version is used, use a reputable & robust RNG, etc
Re:RSA is deceptively simple (and fun) by tptacek on Thursday January 18, 2024 @05:31PM (#39048804)
SHA2 is fine. The "reputable" RNG comes with your OS; just use getrandom.
Re:RSA is deceptively simple (and fun) by tialaramex on Thursday January 18, 2024 @08:10PM (#39050375)
If you don't know what you're doing SHA-512/256 (note that's not a choice, that's the name of a single SHA-2 family member) is probably the member of the SHA-2 family to choose.
Re:RSA is deceptively simple (and fun) by tptacek on Thursday January 18, 2024 @08:25PM (#39050489)
I go the other way and tell people to ignore KMAC and just use HMAC for everything, and then you don't really need to know about truncated SHA2.
Re:RSA is deceptively simple (and fun) by tialaramex on Friday January 19, 2024 @03:48AM (#39053141)
Fair, I have no experience with which approach is more likely to prevent naive users from blowing their own feet off in practice.
Re:RSA is deceptively simple (and fun) by tptacek on Friday January 19, 2024 @01:03PM (#39058809)
My feeling is that like in 2001 it would have been valuable to get people to switch to a non-extendable hash by default because people were freelancing their own MACs, but sometime in the intervening 2 decades people switched fully over to HMAC, so that if you're dealing with someone who is literally writing their own prefixed key hash MAC, you've got bigger problems than Merkle Damgard.