Skip to content

viveksyngh/openfaas-luhn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openfaas-luhn

Luhn Algorithm as open faas function (https://en.wikipedia.org/wiki/Luhn_algorithm).

Luhn Algorithm is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States, Canadian Social Insurance Numbers, Israel ID Numbers and Greek Social Security Numbers (ΑΜΚΑ).

Test commit

Usage

Deploy:

$ faas-cli deploy -f ./luhn.yml --gateway=http://<GATEWAY-IP> 

Invoke:

$ echo -n '4539 1488 0343 6467' | faas-cli invoke luhn --gateway=<GATEWAY-IP>

Example

True

False

Releases

No releases published

Packages

No packages published

Languages