dammcheck

Crates.iodammcheck
lib.rsdammcheck
version0.1.2
sourcesrc
created_at2023-10-03 00:10:18.960006
updated_at2023-10-03 00:15:10.552832
descriptionImplementation of the Damm Algorithm in various bases/alphabets
homepage
repositoryhttps://github.com/J-Wall/dammcheck
max_upload_size
id990637
size122,951
Jesse Wallace (J-Wall)

documentation

README

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")
Commit count: 6

cargo fmt