security

package
v0.11.1-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptManager

type EncryptManager struct {
	// contains filtered or unexported fields
}

func NewEncryptManager

func NewEncryptManager() *EncryptManager

func (*EncryptManager) Decrypt

func (sm *EncryptManager) Decrypt(data []byte) (string, error)

func (*EncryptManager) Encrypt

func (sm *EncryptManager) Encrypt(plaintext string) ([]byte, error)

func (*EncryptManager) UpdateKeys

func (sm *EncryptManager) UpdateKeys(keyringConfig config.DatabaseEncryptionKey)

type Key

type Key struct {
	Password     string
	PasswordSalt string
}

Jump to

Keyboard shortcuts

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