#numbers #social #validation #greek #security #valid

amka

A validator for greek social security number (AMKA)

5 releases (3 stable)

1.1.0 Dec 20, 2020
1.0.1 Dec 19, 2020
0.1.1 Dec 19, 2020
0.1.0 Dec 19, 2020

#4 in #greek

MIT license

5KB
77 lines

amka-rs

CI

A validator for greek social security number (AMKA)

Usage

Add amka under [dependencies] in your Cargo.toml:

[dependencies]
amka = "1.0.0"

Use the validator:

use amka;

// An invalid AMKA
let (is_valid, err) = amka::validate("09095986680");
assert!(!is_valid);
println!("{}", err);

// An valid AMKA
let (is_valid, err) = amka::validate("09095986684");
assert!(is_valid);
assert_eq!("", err)

lib.rs:

A validator for greek social security number (AMKA) More information is available on AMKA.gr.

Dependencies

~1MB
~18K SLoC