Simplest method of hiding sensitive information
Posted
by drozzy
on Stack Overflow
See other posts from Stack Overflow
or by drozzy
Published on 2010-03-20T17:46:47Z
Indexed on
2010/03/20
17:51 UTC
Read the original article
Hit count: 194
encryption
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?
© Stack Overflow or respective owner