Skip to main content

Implementation of the Damm Algorithm in various bases/alphabets

Project description

Dammcheck

Implementation of the Damm Algorithm in various bases/alphabets.

Usage

import dammcheck

# List available built-in alphabets
dammcheck.builtin_alphabets()

# Calculate the Damm check digit using a built-in alphabet
dammcheck.damm("ABC", alphabet="base32crockford")

# Or a custom alphabet
dammcheck.damm("TATA", custom_alphabet="ACGT")

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page