Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKey = errors.New("invalid master key")
Functions ¶
This section is empty.
Types ¶
type FieldCrypto ¶
type FieldCrypto struct {
// contains filtered or unexported fields
}
FieldCrypto encrypts/decrypts fields and produces lookup hashes.
func NewFieldCrypto ¶
func NewFieldCrypto(key []byte) (*FieldCrypto, error)
func (*FieldCrypto) DecryptString ¶
func (c *FieldCrypto) DecryptString(encoded string) (string, error)
func (*FieldCrypto) EncryptString ¶
func (c *FieldCrypto) EncryptString(plaintext string) (string, error)
func (*FieldCrypto) HashString ¶
func (c *FieldCrypto) HashString(value string) string
Click to show internal directories.
Click to hide internal directories.