encoder

package
v1.0.1000 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 11 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

func CreateSqlColEnc

func CreateSqlColEnc(data interface{}) (val interface{}, name string, err error)

Types

type MongoClientEncrypted

type MongoClientEncrypted struct {
	// contains filtered or unexported fields
}

func NewMongoClientEncrypted

func NewMongoClientEncrypted(provider encryptionInterfaces.Provider) *MongoClientEncrypted

func (*MongoClientEncrypted) Decrypt

func (c *MongoClientEncrypted) Decrypt(src interface{}, dst interface{}) error

func (*MongoClientEncrypted) Encrypt

func (c *MongoClientEncrypted) Encrypt(data interface{}) (res interface{}, err error)

type MongoSecureField

type MongoSecureField struct {
	Meta encryptionInterfaces.Meta       `json:"meta" bson:"meta"`
	Data map[string]MongoSecureFieldData `json:"data" bson:"data"`
	// contains filtered or unexported fields
}

func NewMongoSecureField

func NewMongoSecureField(providerInterface encryptionInterfaces.Provider, provider encryptionInterfaces.EncProvider) *MongoSecureField

func (*MongoSecureField) AddData

func (c *MongoSecureField) AddData(name string, data interface{}, encrypted, createHash bool)

type MongoSecureFieldData

type MongoSecureFieldData struct {
	Hash  []byte `json:"hash,omitempty" bson:"hash,omitempty"`
	Crypt []byte `json:"crypt" bson:"crypt"`
}

type SqlClientEncrypted

type SqlClientEncrypted struct {
	// contains filtered or unexported fields
}

func NewSqlClientEncrypted

func NewSqlClientEncrypted(provider encryptionInterfaces.Provider) *SqlClientEncrypted

func (*SqlClientEncrypted) Decrypt

func (c *SqlClientEncrypted) Decrypt(src, dest interface{}) error

func (*SqlClientEncrypted) Encrypt

func (c *SqlClientEncrypted) Encrypt(data interface{}) (val interface{}, err error)

Jump to

Keyboard shortcuts

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