package
0.0.0-20221112035751-3d067a8c9f04
Repository: https://github.com/crossedbot/common.git
Documentation: pkg.go.dev
# Functions
AesGcmKey returns a new GCM wrapped AES cipher block; keys should be 16, 24, or 32 bytes in length to select AES-128, AES-192, or AES-256 respectively.
NewEncryptionParams returns a new EncryptionParams, using the given key to generate the salt and nonce parameters.
NewEncryptionParamsWithValues returns a new EncryptionParams using the given parameter values.
NewKey returns a new GCM wrapped AES cipher block of a PBKDF2 extended key.
# Interfaces
EncryptionParams represents an interface to perform symmetric encryption.