freshcrate
Skin:/
Home > Developer Tools > microsoft-security-utilities-secret-masker

microsoft-security-utilities-secret-masker

A tool for detecting and masking secrets

Why this rank:Release freshnessHealthy release cadence

Description

Microsoft Security Utilities - Secret Masker ============================================= microsoft-security-utilities-secret-masker is part of the Microsoft Security Utilities used internally. You can find the related .NET SDK package `here <https://www.nuget.org/packages/Microsoft.Security.Utilities>`_. This Secret Masker Python library focuses on: - providing some built-in detection rules in json format - detecting sensitive data for given input - masking sensitive data with simple symbols or sha256 hash for given input Installation ++++++++++++ You can install the package via pip: :: pip install microsoft-security-utilities-secret-masker Usage +++++ You can use the SecretMasker class to detect and mask sensitive data in your input. Here is an example: .. code-block:: python from microsoft_security_utilities_secret_masker import SecretMasker, load_regex_patterns_from_json_file # Load built-in detection rules precisely_classified_regex_patterns = load_regex_patterns_from_json_file('PreciselyClassifiedSecurityKeys.json') unclassified_regex_patterns = load_regex_patterns_from_json_file('UnclassifiedPotentialSecurityKeys.json') # construct secret masker with chosen patterns regex_patterns = precisely_classified_regex_patterns.union(unclassified_regex_patterns) secret_masker = SecretMasker(regex_patterns) input = "This is a sample input with no secrets" detected_secrets = secret_masker.detect_secrets(input) processed_input = secret_masker.mask_secrets(input) License +++++++ :: Microsoft Security Utilities - Secret Masker (secret-masker) Copyright (c) Microsoft Corporation All rights reserved. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.:: .. :changelog: Release History =============== 1.0.0b4 +++++++ * Update regex patterns 1.0.0b3 +++++++ * Minor fix 1.0.0b2 +++++++ * Adopt confidence level patterns 1.0.0b1 +++++++ * Initial release

Release History

VersionChangesUrgencyDate
1.0.0b4Imported from PyPI (1.0.0b4)Low4/21/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

types-jinja2Typing stubs for Jinja2main@2026-07-26
mypyOptional static typing for Pythonmaster@2026-07-25
sagemakerOpen source library for training and deploying models on Amazon SageMaker.3.17.0
alibabacloud-tea-openapiAlibaba Cloud openapi SDK Library for Pythonmaster@2026-07-24
types-setuptoolsTyping stubs for setuptoolsmain@2026-07-24

More from Microsoft Corporation

azure-storage-blobMicrosoft Azure Blob Storage Client Library for Python
azure-mgmt-coreMicrosoft Azure Management Core Library for Python
azure-storage-queueMicrosoft Azure Azure Queue Storage Client Library for Python
azure-monitor-opentelemetry-exporterMicrosoft Azure Monitor Opentelemetry Exporter Client Library for Python

More in Developer Tools

types-jinja2Typing stubs for Jinja2
mypyOptional static typing for Python
sagemakerOpen source library for training and deploying models on Amazon SageMaker.
mexPersistent project memory for AI coding agents. Structured scaffold + drift detection CLI.