An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.3% on proxy.golang.org

proxy.golang.org : github.com/ln80/struct-sensitive

Package sensitive provides a set functions to handle sensitive fields in structs, including: Mask partially redacts sensitive data while preserving the format of the data type (aka kind). It uses a set of predefined masks (e.g 'email' 'ipv4_addr') and allows to register additional masks. Redact replaces sensitive field values with a redaction symbol ('*') by default. The behavior can be customized through optional parameters. Scan is a lower-level function that gives access to sensitive struct metadata and a fields replacer. This can be used to implement more advanced features such as client-side encryption. Check determines whether a struct contains any sensitive data fields. Package sensitive leverages Go struct tags to identify and categorize struct sensitive field. It supports the following tag IDs `sensitive`, `pii`, `sens`. Here's an example: Applying the default masking logic: Applying a custom redact logic:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/ln80/struct-sensitive
Keywords: ccpa , gdpr , go , hipaa , phi , pii
License: MIT
Latest release: 4 months ago
First release: 8 months ago
Namespace: github.com/ln80
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago

    Loading...
    Readme
    Loading...