News for hackers. Stuff that matters.
Re:Copy and paste-friendly Go crypto by niftich on Saturday July 16, 2016 @08:37PM (#12108452)
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.

Re:Copy and paste-friendly Go crypto by baby on Sunday July 17, 2016 @02:53AM (#12109296)
1. 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

3. This `HashPassword()` and `CheckPasswordHash()` functions look interesting

4. Copy/Pasted into the project, it just works!