Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there. I have a situation where I am encrypting a SSN value using the SHA256 hash. However, the users want the ability to view the last four of the SSN. Rather than storing the last 4 of the SSN as raw text in the database, I was thinking about using an encryption / decryption algorithm for just the last 4. Can anyone point me in the right direction to accomplish this?

Thanks, in advance, for any assistance you can offer!

Craig
Posted

1 solution

Check with your client/boss if you need to meet any level of requirements for encryption with sensitive data. There are certain levels of encryption that do not meet privacy compliance requirements. You will need to know if you are subject to these.

Otherwise, there is this article[^] which should get you started.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900