encryption

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package encryption handles encryption of secrets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePasswordMetadata

func DeletePasswordMetadata(db *gorm.DB, labels []string) error

func UpdatePasswordMetadata

func UpdatePasswordMetadata(db *gorm.DB, configuredPrimaryLabel string) error

Types

type Configuration

type Configuration struct {
	Encryptor              storage.Encryptor
	RotationEncryptor      storage.Encryptor
	Changed                bool
	ConfiguredPrimaryLabel string
	StoredPrimaryLabel     string
	ToDeleteLabels         []string
}

func ParseConfiguration

func ParseConfiguration(db *gorm.DB, enabled bool, passwords string) (Configuration, error)

Directories

Path Synopsis
Package compoundencryptor allows encryptors to be combined
Package compoundencryptor allows encryptors to be combined
Package gcmencryptor implements AES GCM encryption
Package gcmencryptor implements AES GCM encryption
Package noopencryptor looks like an encryptor but doesn't do any encryption
Package noopencryptor looks like an encryptor but doesn't do any encryption
Package passwordcombiner combines passwords with salt to create encryption keys
Package passwordcombiner combines passwords with salt to create encryption keys
Package passwordparser parses password data
Package passwordparser parses password data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL