Categorygithub.com/brave/tokenizer
modulepackage
0.7.3
Repository: https://github.com/brave/tokenizer.git
Documentation: pkg.go.dev

# README

Tokenizer

Tokenizer receives sensitive input from somewhere, tokenizes it, and sends the output somewhere else. This summary is deliberately vague because tokenizer's input, output, and tokenization are pluggable: Input can come from an HTTP API or stdin. Tokenization can be done by a HMAC-SHA256 or CryptoPAn. The output can be a Kafka broker or stdout. Tokenizer further supports pluggable aggregation, which dictates how input is processed.

Development

To test, lint, and build tkzr, run:

make

To create a reproducible Docker image, run:

make docker

To understand tokenizer's architecture, begin by studying its interfaces.

Usage

Run the following command to compile tkzr.

make tkzr

Use the following command to run tokenizer with the given receiver, forwarder, and tokenizer:

tkzr -receiver stdin -tokenizer hmac -forwarder stdout

# Type aliases

AddressSet represents a set of string-encoded IP addresses.
AddrsByWallet maps a wallet ID to a set of its anonymized IP addresses, all represented as strings.
WalletsByKeyID maps a key ID to a map of type addrsByWallet.