obfuscate

package
v3.0.0-pre-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0 Imports: 20 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