anonymous {popstudy} | R Documentation |
anonymous
Description
Anonymizing a data frame by avoiding vulnerability to a rainbow table attack.
Usage
anonymous(data, ID, string_length = 15, SEED = NULL)
Arguments
data |
data.frame. A dataset with the a variable to change its values. |
ID |
character. A string with the variable name to change its values. |
string_length |
numeric. It defines the string length of the new identification variable. |
SEED |
to be passed to |
Value
anonymous
function returns a list with two data frames:
data |
original data with the new variable |
dictionary |
data frame with the original variable and the new one |
Author(s)
Cesar Gamboa-Sanabria
References
Oechslin P (2003). “Making a Faster Cryptanalytic Time-Memory Trade-Off.” In Boneh D (ed.), Advances in Cryptology - CRYPTO 2003, 617–630. ISBN 978-3-540-45146-4.
Examples
library(dplyr)
df <- select(mutate(mtcars, id=rownames(mtcars)), id, !contains("id"))
anonymous(df, ID="id", string_length = 5, SEED=160589)
[Package popstudy version 1.0.1 Index]