News for hackers. Stuff that matters.
Re:Stanford JavaScript Crypto Library by Thorrez on Tuesday June 16, 2020 @02:25AM (#23536454)
How does it compare to https://tweetnacl.js.org ? That's 7KB minified and gzipped.
Re:Stanford JavaScript Crypto Library by buu700 on Tuesday June 16, 2020 @08:21AM (#23538250)
TweetNaCl.js is great. I'd go with that if you really need something smaller than libsodium.

Presumably it shares the downsides of TweetNaCl ("doesn't wipe internal buffers [...] [and] has two harmless instances of undefined behaviour"[1]; among, I expect, other shortcuts that may make it less optimal/safe than NaCl), and the fact that it's pure JS adds additional side channel attack surface, but those may be acceptable risks depending on your threat model. They're certainly the least of your concerns if you're just using it in a web page like 0bin.net.

1: https://monocypher.org/why

Re:Stanford JavaScript Crypto Library by BiteCode_dev on Tuesday June 16, 2020 @03:15AM (#23536681)
Never tried it