4 ms·
Your recommendations and defaults are sane, and the code looks solid, thanks for publishing. I just don't know why you call this 'copy and paste-friendly'. Thi
by niftich 10y ago
Your recommendations and defaults are sane, and the code looks solid, thanks for publishing.
I just don't know why you call this 'copy and paste-friendly'. This is essentially a minimalistic library, not a bunch of code examples (ie. "usage").
Stackoverflow (as awful as roll-your-own-crypto is,) is great for seeing code examples in context of a domain problem, rather than a crypographic primitive.
This is a decent wrapper for goland stdlib's crypto, but doesn't particularly help a person who's trying to understand how to apply crypto to their particular usecase, and would therefore be most susceptible to googling it.
- baby 10y ago1. How do I protect my password, umm, I heard I have to hash it. 2. Goes to https://github.com/gtank/cryptopasta/blob/master/hash.go#L41 https://github.com/gtank/cryptopasta/blob/master/hash.go#L41 3. This `HashPassword()` and `CheckPasswordHash()` functions look interesting 4. Copy/Pasted into the project, it just works!