git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/crypto/doc.go (about) 1 // Package crypto provides a high level, secure, easy to use, and hard to misuse API to common 2 // cryptographic operations. 3 // 4 // # KDF 5 // 6 // KDF (Key Derivation Function) functions should be used to derives encryption keys from passwords 7 // or other keys. 8 // 9 // # Pasword 10 // 11 // Only th efunction `HashPassword` should be used for password hashing. 12 // 13 // # AEAD 14 // 15 // AEAD (Authenticated Encryption with Associated Data) is used for secret key (symmetric) cryptography. 16 // 17 // # Hash 18 // 19 // hash functions (`Hash{256,384,512}`, `NewHash`) should be used to hashs files or other kind of data. 20 // NOT FOR PASSWORD. 21 package crypto