Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrambled SSN's 2

Status
Not open for further replies.

hitechboy78737

Programmer
Nov 8, 2004
82
US
Does anyone have a suggestion to scramble a SSN before saving it to a database AND unscrambling it when retrieving the field.

Thanks!
Kevin Howell
Briefcase of Talent
Austin, Texas
 
Are you worried that the database will fall into unfriendly hands? Or is there reporting being done off this database?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
The database would reside on a laptop, that could walk away. I don't think the client has considered this scenario, but I thought of it the other night and decided to do something about it on my own if the solution was simple and "free".

Kevin Howell
 
Then I would use the encryption code that NoCoolHandler linked to. If there's any HIPAA data on the laptop, I'm pretty sure the law would want it protected.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Well, can someone guide me to a VB based resource (the link is c#) about how to encrypt a peice of data?

thanks
 
All the library code in there is from the .NET framework, and works the same no matter which .NET language you're using. The big differences are how variables are declared.

In VB.NET, you say:
Code:
Dim myVar As SomeType
myVar = New SomeType()
In C#, you say:
Code:
SomeType myVar = new SomeType();
So you just reverse the name of the variable with the type. Not too hard.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks! My problem was just reading a "foriegn" code, but looking at it from the perspective you showed me helped alot.

kevin howell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top