Documentation
¶
Overview ¶
Package symmetric provides authenticated symmetric encryption using AES-GCM.
Use this package when you need to encrypt and decrypt data with a shared secret key. The package handles nonce generation automatically, ensuring each encryption operation produces unique ciphertext even for identical plaintext inputs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher provides AES-GCM encryption and decryption.
type Option ¶
type Option func(*config)
Option is optional configuration of the encryptor.
func WithBlockCipherProvider ¶
WithBlockCipherProvider overwrites the provider for the block cipher.
func WithRandReader ¶
WithRandReader overwrites the random data function.
Click to show internal directories.
Click to hide internal directories.