Skip to content

An implementation of the Damm algorithm in Rust

Notifications You must be signed in to change notification settings

mschorsch/damm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

damm-rs

"In error detection, the Damm algorithm is a check digit algorithm that detects all single-digit errors and all adjacent transposition errors." (Wikipedia)

example

use damm_rs::encode;

let number = "572";
assert_eq!(encode(number), Some(4));

About

An implementation of the Damm algorithm in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages