package
0.0.82
Repository: https://github.com/mindersec/minder.git
Documentation: pkg.go.dev

# Packages

Package algorithms contains implementations of various crypto algorithms for the crypto engine.
Package keystores contains logic for loading encryption keys from a keystores.
Package mock_crypto is a generated GoMock package.

# Functions

DeserializeEncryptedData deserialized the data generated by EncryptedData.Serialize().
GenerateNonce generates a nonce for the OAuth2 flow.
IsNonceValid checks if a nonce is valid.
NewBackwardsCompatibleEncryptedData creates an instance of EncryptedData with appropriate defaults plugged in.
NewEngineFromConfig creates a new crypto engine from the service config TODO: modify to support multiple keys/algorithms.

# Constants

DefaultAlgorithm defines the default algorithm to use for encryption.
FallbackAlgorithm defines an older algorithm we use for old data.

# Variables

ErrDecrypt is returned when we cannot decrypt a secret.
ErrEncrypt is returned when we cannot encrypt a secret.

# Structs

EncryptedData represents the structure we use to store encrypted data in the database.

# Interfaces

Engine provides all functions to encrypt and decrypt data.