anonymize: Anonymize a vector.

Description Usage Arguments Details Value Examples

Description

anonymize anonymizes a vector .x by first salting it with salt and then hashing it with hash. See both functions for additional documentation.

Usage

1
2
anonymize(.x, .algo = "sha256", .seed = 0, .chars = letters,
  .n_chars = 5L, ...)

Arguments

.x

a vector.

.algo

the name of the algorithm.

.seed

an integer to seed the random number generator.

.chars

set of characters to salt with.

.n_chars

an integer; number of characters to salt with.

...

additional arguments to be passed to hash.

Details

The user is advised to check out Wikipedia for more information.

Value

An anonymized version of the vector.

Examples

1
2

paulhendricks/anonymizer documentation built on May 24, 2019, 8:27 p.m.