Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
djesusnet authored Oct 25, 2024
1 parent 9b9ae62 commit b672fef
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,9 @@ In this example:
- **`length`** defines the number of characters to mask after the start position.
- **`char`** is the character used to mask the sensitive portion (e.g., `*`, `#`).

## New Features (v1.3.0)
### 8. `MaskSensitiveData` DataAnnotation Support

Version 1.3.0 introduces powerful new features:

### 1. `MaskSensitiveData` DataAnnotation Support

With **Maskify** v1.3.0, you can now use **DataAnnotations** to mask sensitive data directly in your classes. This is perfect for easily securing sensitive fields in your application models such as CPF, CNPJ, credit card numbers, emails, and phone numbers (both mobile and residential).
You can now use **DataAnnotations** to mask sensitive data directly in your classes. This is perfect for easily securing sensitive fields in your application models such as CPF, CNPJ, credit card numbers, emails, and phone numbers (both mobile and residential).

#### Example:

Expand Down Expand Up @@ -171,11 +167,11 @@ public class Cliente
}
```

### 2. Custom Masking Rules
## Custom Masking Rules

In this version, you can create custom masking rules using the `MaskSensitiveData` attribute, specifying how many characters should remain unmasked and choosing a custom masking character.

### 3. Mobile & Residential Phone Masking
## Mobile & Residential Phone Masking

In addition to CPF, CNPJ, email, and credit card masking, **Maskify** now supports:
- **Mobile Phone Masking**: Supports Brazilian mobile numbers (9 digits) while keeping the DDD and last 4 digits visible.
Expand Down

0 comments on commit b672fef

Please sign in to comment.