cryptopasta icon indicating copy to clipboard operation
cryptopasta copied to clipboard

copy & paste-friendly golang crypto

Results 12 cryptopasta issues
Sort by recently updated
recently updated
newest added

Hello, I was wondering why would one use `NewEncryptionKey`? As far as I know one creates/stores somewhere `EncryptionKey` and reuses it for every encryption/decryption (`EncryptionKey` has to be the same...

Currently, [BCrypt is used](https://github.com/gtank/cryptopasta/blob/master/hash.go#L40-L49) as the default password hashing and validation method. However, BCrypt has several shortcomings (listing the two most popular ones): - A maximum password length of 72...

Following [this](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/), I see that you do not set read/write time outs on the server in the `tls_test.go` :o perhaps set some sane defaults?

A nonce collision with GCM is devastating, and there is a 2^{-43} probability of such a collision every single time a message is generated.

Would be good to have some copypasta for generation of TLS certificates, especially certificates signed in a chain. I have done this myself (twitchyliquid64/certlib), but don't pretend to be a...

Is there a specific reason that the `README` is a plaintext file instead of Markdown? Markdown formatting would make it easier to see the different sections and we could even...

Firstly, thank you so much for putting this together, this was fun code to read! Secondly, I added a couple more benchmarks while I was playing around with the code....