-
Notifications
You must be signed in to change notification settings - Fork 0
Anode1/nid
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Some projects require anonymization of ID, the identification key (such as SIN, SSN, Driver License ID, Name+Birth_Date+Birth_Place, or any other natural or surrogate key which cannot be passed due to security or privacy reasons. In that case an organization collecting statistics can still identify the same person even not holding the private information/key. What is necessary is hashing the key and keeping only the surrogate key for all records identification and linking. If the next time (in a different institution) the same personal information will be hashed using the same private keys and the same algorithm, the same hashed ID will be generated, so the institutions will be able to connect the records. So the same algorithm must be used (distributed) to all the institutions. Here, for demonstrating purposes, I use the code of the hash and encoder from the public domain, but any other encoder (from Linux projects or commercial) can be used as well. compile: $make clean debug or $make clean release compile test: $make clean base64 etc adding new tests: Add main and symbol SOMETHING_ELSE, so you can run: $make clean ut1 add new tests like ut, base64, ut1 (this is for individual tests - when main() entry point is necessary, but probably runtime tests without the compilation is more preferable)
About
An example how to generate UID given a unique string (hashed by MD5 and base64-encoded) in ANSI C for projects which requre anonymization
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published