obfuscationprocessor

package
v0.0.0-...-cafc5b9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

This component is a work-in-progress and is not yet qualified for use to exchange sensitive data.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

NewFactory creates a factory for the obfuscation processor.

Types

type Config

type Config struct {
	// Rounds is a Fiestel parameter which determines the
	// difficulty of uncovering the original data.  Default 10.
	Rounds int `mapstructure:"rounds"`

	// KeyLength is a Fiestel parameter which determines the
	// length of the key used to obfuscate.  Default 128.
	KeyLength int `mapstructure:"key_length"`

	// EncryptAll indicates that all byte-array and string values
	// should be obfuscated.
	EncryptAll bool `mapstructure:"encrypt_all"`

	// EncryptAttributes indicates a specific list of attributes
	// to obfuscate.
	EncryptAttributes []string `mapstructure:"encrypt_attributes"`
}

Jump to

Keyboard shortcuts

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