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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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