MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / Tokenize

Method Tokenize

internal/tokenization/tokenization.go:79–81  ·  view source on GitHub ↗

Tokenize converts a PII value to a token using the default standard mode. Parameters: - value string: The original PII value to be tokenized. Returns: - string: The tokenized value. - error: An error if tokenization fails.

(value string)

Source from the content-addressed store, hash-verified

77// - string: The tokenized value.
78// - error: An error if tokenization fails.
79func (s *TokenizationService) Tokenize(value string) (string, error) {
80 return s.TokenizeWithMode(value, StandardMode)
81}
82
83// TokenizeWithMode converts a PII value to a token using the specified mode.
84//

Callers 5

TestKeySizeFunction · 0.95
TestInvalidKeySizeFunction · 0.95
TestUTF8TokenizationFunction · 0.95

Calls 1

TokenizeWithModeMethod · 0.95

Tested by 4

TestKeySizeFunction · 0.76
TestInvalidKeySizeFunction · 0.76
TestUTF8TokenizationFunction · 0.76