Crates.io | luhncalc |
lib.rs | luhncalc |
version | 1.0.1 |
source | src |
created_at | 2021-04-18 09:19:34.91114 |
updated_at | 2021-04-28 07:01:29.075061 |
description | Validate a digit sequence using Luhn algorithm and calculates the sequence’s next validation digit. |
homepage | https://github.com/poremski/luhncalc |
repository | https://github.com/poremski/luhncalc |
max_upload_size | |
id | 386066 |
size | 23,348 |
Luhn Calculator is a command-line utility to quickly validate a digit sequence using Luhn algorithm and calculate the next validation digit to be appended to the digit sequence to make whole sequence valid.
Validate the following invalid digit sequence 1234567890
:
> luhncalc 1234567890
Sequence: 1234567890
Valid sequence: false
Next digit: 3
Validate the following valid digit sequence 12345678903
:
> luhncalc 12345678903
Sequence: 12345678903
Valid sequence: true
Next digit: 1
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-20 license, shall be dual licensed as above, without any additional terms or conditions.