δΈζ | English | π Documentation
maven license jdk codecov deepwiki
π A MyBatis-based enterprise data security component
Providing annotation-based data masking and automatic database encryption/decryption
π Ready-to-use enterprise data security solution, letting you focus on business development
- π Data Masking - Supports 9 built-in masking rules, flexible custom masking, supports any entity type
- π Database Encryption - MyBatis plugin-based automatic encryption/decryption, encrypt on insert, decrypt on select
- π‘οΈ SM4 Support - Supports national standard SM4 symmetric encryption algorithm, secure and reliable
- π¦ Any Type Support - Supports any entity, List, Map, with or without generics, all support masking and encryption/decryption
- π Nested Masking - Supports multi-level nested entity masking, meeting complex scenario requirements
- β‘ Zero Impact - Encryption/decryption failure supports returning original value, does not affect normal business operation
- π Deep Copy Design - New insertions do not change source object reference, supports continued object operations after save
- π§ High Extensibility - Supports custom encryption algorithms, encryption/decryption type handlers, masking type handlers
π‘ Version Note: Choose the appropriate version based on your JDK
- JDK 17+ use version
1.1.4- JDK 8-17 use version
1.0.7
<dependency> <groupId>com.rpamis</groupId> <artifactId>rpamis-security-spring-boot-starter</artifactId> <version>1.1.4</version> </dependency>
<dependency> <groupId>com.rpamis</groupId> <artifactId>rpamis-security-spring-boot-starter</artifactId> <version>1.0.7</version> </dependency>
public class User { private Long id; private String username; @SecurityField private String password; }
public class User { private Long id; private String username; @Masked(type = MaskType.NAME_MASK) private String name; }
| Resource | Link |
|---|---|
| π Full Documentation | Documentation Website |
| π Quick Start | Quick Start Guide |
| π Architecture | Architecture Design |
| π‘ Examples | Code Examples |
| π§ API Reference | API Documentation |
| π§ Principle Analysis | Technical Background / Principle Analysis |
| π€ Agent Skill | AI Agent Integration Guide - For AI-powered development assistance |
| Feature | Rpamis-Security | Similar Projects |
|---|---|---|
| Any entity type masking | β List, Map, non-generic entities | β Single entity only |
| Nested masking | β Multi-level nesting | β Not supported |
| Auto encryption/decryption | β Dynamic SQL support | β Limited functionality |
| SM4 encryption | β Supported | Partial support |
| Encryption failure handling | β Return original value | β Not supported |
| Deep copy design | β Preserves source reference | β Not supported |
| Test coverage | β 89%+ / 130+ scenarios | β None |
Rpamis-Security is 100% driven by the open source community
Contributions and feedback are welcome! Check out the Contributing Guide for more details
This project is licensed under the Apache 2.0 License.
Made with β€οΈ by Rpamis Team