Jump to content

Storing a SIN number in MySQL


jordanwb

Recommended Posts

In a form that I made that is using HTTPS, one of the fields is for the Applicant and Co-Applicant's SIN numbers. Now I don't know how I'd go about encrypting them securely so that they cannot be obtained in a hacking. Any ideas as to storing SIN numbers safely?

 

I'll probably find something in two minutes. I always do.  :-\

Link to comment
https://forums.phpfreaks.com/topic/137566-storing-a-sin-number-in-mysql/
Share on other sites

depends on how you need to access them? you can always encrypt them with a one-way encryption using crypt(). But, you won't be able to read the SIN back. If someone provides the SIN again, you can find the matching record though. Just google for PHP user login tutorials and how to store passwords in a database....same concept

That's true. So it doesn't really seem worth it to encrypt the SIN numbers.

 

um...that is up to you. obfuscation while not bullet-proof in any way shape or form, it is still a layer of protection. but, by obfuscating, it's adds an extra layer of complexity to your code...

um...that is up to you. obfuscation while not bullet-proof in any way shape or form, it is still a layer of protection. but, by obfuscating, it's adds an extra layer of complexity to your code...

 

Couldn't hurt. I'll add some obfuscation.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.