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
Click to show internal directories.
Click to hide internal directories.