Hi Kent,
Thanks for the quick response.
The requirement is that it should not be easy to reverse engineer. We are not allowed to have a set formula to get the new SSN because any one who knows that formula can reverse engineer. We are allowed to use maybe a RANDOM generated number and use that for deriving the new SSN.
Could you give me some more details on what the MODULO function is?
The basis on which i am trying to come up with the approach is that the SSN should not be predictable, but it can be repeatable.
Thanks
Ali.
Main Topics
Browse All Topics





by: KdoPosted on 2009-10-15 at 06:34:28ID: 25580327
Hi Bhaqatali,
How secure does the scrambling need to be? If it needs to be so secure that it can not be reverse engineered, you'll probably want to incorporate the functions of a security library.
If the masking can be based on a function the makes it difficult to reverse engineer, a simple function can do it. Create a function that converts the SSN by using the MODULO function of the SSN against a large (16 or more digits) prime number.
Good Luck,
Kent