Hacker News new | ask | show | jobs
by sgift 4316 days ago
How far do you want to go? The Javadocs state it plain and clear that this is not cryptographically secure. Is AlmostRandom enough? Maybe we should force people to set an enum? new AlmostRandom(AlmostRandomCertification.YES_I_M_NOT_AN_IDIOT_AND_WONT_USE_THIS_FOR_CRYPTOGRAPHIC_PURPOSES)? You have to draw the line somewhere.
1 comments

True, although honestly your tongue-in-cheek enum example is probably closer to where the line should be.
Also a nice reminder: "Never write your own crypto"
(Outside of education.)