crypt

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFields

func DecryptFields(obj interface{}, passphrase string) error

DecryptFields iterates through the given struct and decrypts all fields marked with a struct tag of `encrypt:"true"`. The fields are directly manipulated and the value is replaced.

The input object needs to be a pointer to a struct!

func EncryptFields

func EncryptFields(obj interface{}, passphrase string) error

EncryptFields iterates through the given struct and encrypts all fields marked with a struct tag of `encrypt:"true"`. The fields are directly manipulated and the value is replaced.

The input object needs to be a pointer to a struct!

Types

This section is empty.

Jump to

Keyboard shortcuts

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