encryption

package
v0.0.0-...-ebd6d4f 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: 2 Imported by: 0

Documentation

Overview

Package encryption implements types that store in encrypted for in the DB. The encrpytion and decryption happens transparantly.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidTypeInDB = errors.New("invalid type stored in database")
)

Functions

This section is empty.

Types

type EncryptedString

type EncryptedString string

EncryptedString will transparantly encrypt or decrypt data when it is saved or loaded from the database.

TODO: Implement actual encryption. WARNING actual encryption is not yet implemented.

func (*EncryptedString) Scan

func (e *EncryptedString) Scan(src any) error

func (EncryptedString) Value

func (e EncryptedString) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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