encryption

package
v1.0.1003 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Encryption

type Encryption struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Encryption) CreateMeta

func (*Encryption) CreateSqlMeta

func (*Encryption) DefaultProvider

func (c *Encryption) DefaultProvider() encryptionInterfaces.EncProvider

func (*Encryption) GetKeyId

func (c *Encryption) GetKeyId(keyId string) string

func (*Encryption) GetKeyVersion

func (c *Encryption) GetKeyVersion(keyId string) (version int)

func (*Encryption) Hash

func (c *Encryption) Hash(data []byte) []byte

func (*Encryption) MongoDecrypt

func (c *Encryption) MongoDecrypt(data interface{}, dest interface{}) (err error)

MongoDecrypt - transform mongodb encryption model to golang struct

func (*Encryption) MongoEncrypt

func (c *Encryption) MongoEncrypt(data interface{}) (res interface{}, err error)

MongoEncrypt - transform golang struct to mongodb encryption model always use default provider

func (*Encryption) Provider

func (c *Encryption) Provider(providerId, keyId string) encryptionInterfaces.EncProvider

func (*Encryption) SqlDecrypt

func (c *Encryption) SqlDecrypt(src, dst interface{}) (err error)

SqlDecrypt - transform sql encryption model to golang struct

func (*Encryption) SqlEncrypt

func (c *Encryption) SqlEncrypt(data interface{}) (res interface{}, err error)

SqlEncrypt - encrypted data and transform golang struct to sql encryption model always use default provider

func (*Encryption) SqlScheme

func (c *Encryption) SqlScheme(data interface{}) (val interface{}, name string, err error)

SqlScheme - transform golang struct to sql encryption model

Directories

Path Synopsis
env

Jump to

Keyboard shortcuts

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