Re: SSN encryption

tomstdenis_at_gmail.com
Date: 09/29/05


Date: 29 Sep 2005 06:32:47 -0700

drfremove@nber.org wrote:
> > remainder of the bits with random data and encrypt, voila 128-bit
> > "token" which when decoded gets you a SSN.
> >
> > Tom
>
> I guess I am too much of a beginner to understand your suggestion. If
> we add 85 (33+85=128) random bits and then encrypt, won't the same SSN
> encrypt to different values depending on the random bits? (Or are the
> random bits a maintained key)? We specifically don't need to decrypt
> the SSNs - only use the encrypted values for matching. If we have to
> decrypt to use the field, then our purpose is defeated, since the file
> user would then be given the actual SSN, which we want to avoid. We
> only want to give them enough information to match records across
> tables.

what you need then is a keyed PRF based on the SSN then the salt bits
are the output of the PRF [e.g. use CMAC with a fixed secret key on the
SSN, get an 85-bit tag, append that to the SSN and encrypt].

That way a dictionary [e.g. MITM] attack won't work and you can even
verify entries by checking the MAC.

Tom



Relevant Pages

  • Re: Newbie IV Question.
    ... Tom St Denis wrote: ... You mean CTR mode right? ... using ECB to encrypt the IV as the first 16 byte block into the ... with random text following the zero termination. ...
    (sci.crypt)
  • Re: A basic cryptanalysis question
    ... It couldn't possibly be that BICOM is wholly inapplicable to a ... > was done by a Canadian Matt Timmermans. ... Ok now how do I use this to encrypt a 10GB file for backup? ... Tom ...
    (sci.crypt)
  • Re: SSN encryption
    ... >>We want to encrypt social security numbers in a database. ... >>requirement is that the same SSN should encrypt to the ... To avoid collisions you also have to store the encrypted ...
    (sci.crypt)
  • Re: SSN encryption
    ... >> We want to encrypt social security numbers in a database. ... >> database it will be possible to easily match them to existing records. ... we add 85 random bits and then encrypt, won't the same SSN ... feenberg isat nber dotte org ...
    (sci.crypt)
  • SSN encryption
    ... We want to encrypt social security numbers in a database. ... tell, the solutions are of the form "Map each SSN to a sequence number, ...
    (sci.crypt)