Simplest method of hiding sensitive information
- by drozzy
What is the simplest way I can hide a sensitive identifier, while providing some equivalent means of identifying the data from outside?
For example, lets say I have a database table with records and one of them is an sensitive ID field.
ID
2A
1S
etc...
then I want to have a second record:
ID PublicID
2A AXXX44328
1S KKKZJSAAS
such that when I am given a PublicID I can always determine what ID it refers to:
H(PublicID) = ID
but nobody else is able to do so.
I suspect this is like, encryption - with throwing away a public key?