package
0.1.2
Repository: https://github.com/nguyengg/go-aws-commons.git
Documentation: pkg.go.dev

# Functions

NewAES returns a new EndecWithKey using AES key given at encryption/decryption time.
NewAESWithKey returns a new Endec using the given AES key.
NewChaCha20Poly1305 returns a new ChaCha20-Poly1305 EndecWithKey using 256-bit key given at encryption/decryption time.
NewChaCha20Poly1305WithKey returns a ChaCha20-Poly1305 Endec that uses the given 256-bit key.
NewParameterStoreEndec returns a new SecretsManagerEndec.
NewSecretsManagerEndec returns a new SecretsManagerEndec.
Open decrypts the given ciphertext with the given cipher.AEAD.
Seal encrypts the given plaintext with the given cipher.AEAD.

# Structs

ParameterStoreEndecOptions customises NewParameterStoreEndec.
SecretsManagerEndecOptions customises NewSecretsManagerEndec.

# Interfaces

Endec provides methods for encrypting and decrypting data that fit in memory.
EndecWithKey provides methods for encrypting and decrypting data that fit in memory.
GetParameterAPIClient abstracts the AWS Systems Manager API GetParameter which is used by ParameterStoreEndec.
GetSecretValueAPIClient abstracts the Secrets Manager API GetSecretValue which is used by SecretsManagerEndec.
ParameterStoreEndec is an Endec with key from AWS Systems Manager's Parameter Store.
SecretsManagerEndec is an Endec with key from AWS Secrets Manager.