anonymize

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHMACBase64 added in v0.29.0

func CalculateHMACBase64(message, key string, t time.Time) (string, string)

Returns the hash of the message and the timestamp used to generate it.

func CalculateHashBase64 added in v0.28.0

func CalculateHashBase64(message string) string

Returns the hash of the message.

func String

func String(orig string) string

Anonymize string

func Substring

func Substring(orig string, ssToAnon string) string

Anonymize substring of a string

func VerifyHMACBase64 added in v0.29.0

func VerifyHMACBase64(tag, orig, key, timestampB64 string) (bool, error)

Returns whether the tag is valid for the given message, timestamp and key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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