Giter Site home page Giter Site logo

desensitized's Introduction

desensitized —— 基于自定义注解实现日志字段脱敏

项目说明

目前项目核心代码只有3个包:annotation、enums、utils

com.danny.log.desensitized
                          .annotation
                                     .Desensitized
                          .enums
                                .SensitiveTypeEnum
                          .utils
                                .DesensitizedUtils
                                .ObjectUtils

1、Desensitized是标记敏感信息的注解,用于标记在需要脱敏的字段上,用法建test下的com.danny.log.desensitized.entity.BaseUserInfo类

2、SensitiveTypeEnum是脱敏的字段类型枚举,包括手机号、身份证号、姓名等

3、ObjectUtils用于深克隆对象(找了好多工具都不能在不实现Serializable接口的情况下真正实现深克隆)

4、DesensitizedUtils对字段脱敏的核心逻辑

使用方法:

详见test包下的com.danny.log.desensitized.utils.DesensitizedUtilsTest类

博客链接:

数据脱敏——什么是数据脱敏:http://blog.csdn.net/huyuyang6688/article/details/77689459

数据脱敏——基于自定义注解实现日志脱敏 http://blog.csdn.net/huyuyang6688/article/details/77759844

desensitized's People

Contributors

dannyhoo avatar

Watchers

James Cloos avatar wansweet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.