Crates.io | dammcheck |
lib.rs | dammcheck |
version | 0.1.2 |
source | src |
created_at | 2023-10-03 00:10:18.960006 |
updated_at | 2023-10-03 00:15:10.552832 |
description | Implementation of the Damm Algorithm in various bases/alphabets |
homepage | |
repository | https://github.com/J-Wall/dammcheck |
max_upload_size | |
id | 990637 |
size | 122,951 |
Implementation of the Damm Algorithm in various bases/alphabets.
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")