How to use the presidio-analyzer.analyzer.predefined_recognizers.credit_card_recognizer.CreditCardRecognizer function in presidio-analyzer

To help you get started, we’ve selected a few presidio-analyzer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / credit_card_recognizer.py View on Github external
def validate_result(self, pattern_text):
        sanitized_value = CreditCardRecognizer.__sanitize_value(pattern_text)
        checksum = CreditCardRecognizer.__luhn_checksum(sanitized_value)

        return checksum == 0
github microsoft / presidio / presidio-analyzer / analyzer / predefined_recognizers / credit_card_recognizer.py View on Github external
def validate_result(self, pattern_text):
        sanitized_value = CreditCardRecognizer.__sanitize_value(pattern_text)
        checksum = CreditCardRecognizer.__luhn_checksum(sanitized_value)

        return checksum == 0

presidio-analyzer

Presidio Analyzer package

MIT
Latest version published 7 days ago

Package Health Score

94 / 100
Full package analysis

Similar packages