当前位置:网站首页>Desensitization field example
Desensitization field example
2022-07-19 04:56:00 【dzl84394】
Encountered many fields , The form needs to be verified ,db Need encryption , Logs need desensitization , I feel super annoying ,
Make a note of
In the database , Confidential fields cannot be saved in clear text ( Finally started with the database ), add to _like, _hash, _encrypt Etc , Remove plaintext .
_hash It cannot be decrypted in one direction , To decrypt, you must go to _encrypt, But you can make inquiries ,hash Indexes ( Don't think about confused queries )
_encrypt Symmetry can be used , Asymmetry can also be used ( Public key private key )
When exporting , It will also be very troublesome , Because different libraries may have different keys , This leads to the need to decrypt , Re encryption
I ponder over all the sensitive fields in the future , Save a separate table , When querying , Only detailed page decryption congestion , The front-end list page only contains online desensitization data
When typing logs , You need to change the sensitive field to ***, Some examples are as follows
| type | explain | Example | check | transformation | desensitization |
|---|---|---|---|---|---|
| cn_idcard | Id card 18 Bit or 15 position , It can be parsed into provinces, cities and counties , But zoning adjustment is troublesome | 320981*****3477 | 15 or 18 Digit number , The last one may X | Leave the 6 after 3, Add in the middle *** | |
| cn_passport | Chinese passport | ||||
| cn_officer_no | Officer's certificate or police officer's certificate | province ( Large units )+678 Every bit is possible | |||
| cn_social_card | Social security card number , Medical insurance No , Non ID number | ||||
| cn_residence_no | Residence Permit No | ||||
| cn_fullname | Chinese name | Remove the front and back , If 2 Only the last name is reserved for the position , Keep three words before and after , Ethnic minorities may have many words , Remove the middle third | |||
| cn_mobile_phone | cell-phone number | 13500008188 | 11 Digit number , Maybe the front belt +86 | Some mobile phone numbers have +86, Some don't , It is suggested that the unification should be removed first , Check again | Leave the 3 after 4 |
| cn_tele_phone | Seat number | 025-843941234 | Unified area code , Go to +86 | ||
| cn_fax_number | Fax number | ||||
| cn_address | Chinese address | ||||
| cn_driver_license | A driver's license | ||||
| cn_plate_number | license plate number | ||||
| cn_engine_number | Frame number | ||||
| cn_a_stockcode | a Stock code | ||||
| enterprise social credit | Enterprise unified letter of credit code | ||||
| cn_bank_card | Bank card number | ||||
| cn_address | Address | If there are provinces, cities and counties , Remove the detailed address part behind the district and county | |||
| en_address English address | |||||
| en_fullname | English name | ||||
| @ Change some of the previous positions | |||||
| ip_address | Ipv4 Address | Last 2 Change the number | |||
| mac_address | mac Address | ||||
| imei | imei Number | ||||
| idfa | Apple users id | ||||
| normal | Other general | The middle third is changed * |
边栏推荐
- Notes on Advanced Mathematics: selected exercises of Wu Yue
- Some concepts of ES
- [FPGA tutorial case 27] realize dual port RAM ping-pong structure through Verilog
- 负载均衡器ribbon实战
- Kubernetes 的监控与告警
- [Lipschitz] simulation of Lipschitz Lipschitz exponent based on MATLAB
- 消息转换器(json)
- 知识图谱de构建与应用(六):知识图谱的存储、服务与质量
- NoSQL概述
- Shallow chat link tracking
猜你喜欢
随机推荐
Database learning notes (I) retrieval data
RestClient操作文档
Notes on Advanced Mathematics: a conjecture about the Equivalent Infinitesimal Substitution
Masm32 writer
知识图谱de构建与应用(七):大规模知识图谱预训练
thinkphp 官网教程
接口的参数返回封装类Result
Mysql8.026-- view (bottom)
加密和解密
fastjson、jackjson、gson区别和注意点
es的一些概念
微众对接机制备忘
负载均衡添加ssl证书
Redis cluster interview questions
高等数学笔记:关于等价无穷小替换的一个猜想
[FPGA tutorial case 27] realize dual port RAM ping-pong structure through Verilog
Mysql database table a data synchronization to table b
一文带你了解HAProxy
消息转换器(json)
【FPGA教程案例27】通过Verilog实现双口RAM乒乓结构









