Securely storing and searching by social security number

后端 未结 4 832
太阳男子
太阳男子 2021-02-14 02:41

So I\'m working on a supplemental web-based system required by an HR department to store and search records of former personnel. I fought the requirement, but in the end it was

4条回答
  •  没有蜡笔的小新
    2021-02-14 02:52

    Create a new salt and IV for each record. If you need to dump the data into a report for some reason (hopefully without my SSN in it), you would be able to use the method you describe with the unique salt and IV. If you only need to search on an SSN, you could actually hash it instead of using a reversible encryption (more secure).

提交回复
热议问题