Registry / crypto / gtank-cryptopasta

gtank-cryptopasta

JSON →
library0.0.0-20170601214702-1f550f6f2f69gogounverified

Provides symmetric authenticated encryption using 256-bit AES-GCM with a random nonce, along with hashing, password hashing, and TLS configuration recommendations.

go get github.com/gtank/cryptopasta
INSTALL
IMPORT
SIG · GTANK-CRYPTOPASTA
G
gtank-cryptopasta
cryptogov0.0.0-20170601214702-1f550f6f2f69
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cryptopasta
github.com/gtank/cryptopasta

Encrypts plaintext using AES-GCM with a random nonce.

package main import ( "fmt" "github.com/gtank/cryptopasta" ) func main() { key := [32]byte{} plaintext := []byte("hello") ciphertext, err := cryptopasta.Encrypt(plaintext, &key) if err != nil { panic(err) } fmt.Println(ciphertext) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170601214702-1f550f6f2f69latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
gtank-cryptopasta — go get gtank-cryptopasta · libregistry