Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: One way encryption of identifying information
1 point by jepper on April 3, 2013 | hide | past | favorite
Hi HN:

I've got a question I've been struggling with for a while. I want to build a platform my PhD research where i can ask patients to fill in questionnaires about health and mobility. This would be a great speed up over the usual approach with the questionnaires on paper.

I've designed a system with public key encryption of the data fields but I need a way to identify patients to serve the required questionnaire. This is usually done with patient numbers like this: 88811121, an INT of 7-8 characters. Hashing is easily reversed because of the small number of possibilities.

How can i protect the ID while still identifying patients with this? My approach would be: patient number + calculated salt in a bcrypt/scrypt/PBKDF2 style approach.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: