dce-data-anonymizer
v1.0.5
Published
Anonymizes batches of data, replacing user info with fake user info, creating a map of old info to new info in case de-anonymization is necessary
Downloads
291
Readme
data-anonymizer
Anonymizes batches of data, replacing user info with fake user info, creating a map of old info to new info in case de-anonymization is necessary
Anonymizing data
Run npx dce-data-anonymizer --anonymize --real=/path/to/data-to-anonymize.json --anon=/path/to/output-file.json --code=/path/to/de-anonymizer-code.txt
--real=/file.json
is a file where each line is a json object to anonymize
--anon=/file.json
is an output file that will be the identical format as the real data, but with the following fields anonymized: userId, userFirstName, userLastName, userEmail, loginId
--code=/file.txt
is an output file containing text that is required to de-anonymize the anonymized data, should that ever be necessary. Discard this file if you don't need it
De-anonymize data
You'll need the anonymized data, plus the de-anonymization code that was exported when anonymizing.
Run npx dce-data-anonymizer --deanonymize --anon=/path/to/input-anon-data-file.json --code=/path/to/de-anonymizer-code.txt --real=/path/to/output-real-data.json
--anon=/file.json
is a file where each line is a json object to de-anonymize
--code=/file.txt
the de-anonymization code that was exported when the data was anonymized
--real=/file.json
is an output file that will be the identical format as the anon data, but with the following fields de-anonymized: userId, userFirstName, userLastName, userEmail, loginId