#numbers #sequence #lewn

bin+lib lewn

An implementation of Luhn's checksum algorithm using Rust

4 releases

Uses new Rust 2024

new 0.9.3 Apr 1, 2025
0.9.2 Apr 1, 2025
0.9.1 Apr 1, 2025
0.9.0 Apr 1, 2025

#136 in Finance

Download history 237/week @ 2025-03-28

237 downloads per month

CC0 license

8KB
120 lines

Overview

This crate is a simple implementation of Luhn's checksum validation algorithm.

It offers a few methods which may be helpful in creating/validating Luhn numbers, including a couple which can show the calculated checksums and check digits.

It is licensed under a CC0 license and may be used freely without accreditation.

Notes

The package has only been tested by me. If there are any issues, please reach out at adithya@satyaloka.org.

Thanks for reading.

Dependencies

~1–1.7MB
~31K SLoC