nnid
v1.5.0
Published
Utils for norwegian national identity numbers
Downloads
12
Readme
NNID
Replace norwegian and swedish identity numbers with fake ones to not expose real identities in your data. Both 'fødselsnummer' and 'd-nummer' are replaced.
The synthetically generated IDs will still pass validation of check digits. The synthetic IDs will have the birth date part set to an invalid date to ensure that they will never match a real identity.
Usage
To replace all valid NNIDs in the current directory (and subdirectories) with synthetic ones:
npx nnid
Options:
- -r, --replace-invalid : Replace 11-digit numbers that do not qualify with any norwegian ID types with synthetic ones.
- -d, --dir: Directory to search for numbers in. Defaults to current directory.
- --swedish: Replace 12-digit numbers that are valid swedish personal numbers with synthetic ones.
- --fake: Generate a random synthetic 'fødselsnummer'.
- --fake-d: Generate a random synthetic 'd-number'.
- --fake-swedish: Generate a random synthetic swedish personal number.
- -v, --verbose: Verbose output.