obfuscate

package
v3.0.0-...-fed599b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package obfuscate obfuscates a slackdump chunk recording. It provides deterministic obfuscation of IDs, so that the users within the obfuscated file will have a consistent IDs. But the same file obfuscated multiple times will have different IDs. The text is replaced with the randomness of the same size + a random addition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, w io.Writer, r io.Reader, options ...Option) error

Do obfuscates the slackdump chunk recording from r, writing the obfuscated chunks to w.

func DoDir

func DoDir(ctx context.Context, src string, trg string, options ...Option) error

DoDir obfuscates all files in the directory src, placing obfuscated files in the directory trg.

Types

type Option

type Option func(*doOpts)

func WithSeed

func WithSeed(seed int64) Option

WithSeed allows you to specify the seed for the random number generator.

Jump to

Keyboard shortcuts

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