| Package | vegas.string |
| Class | public class Luhn |
The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, was developed in the 1960s as a method of validating identification numbers.
example
See Luhn Formula
import vegas.string.Luhn ;
var code:String = "456565654" ;
trace (code + " isValid : " + Luhn.isValid(code)) ;
| Method | Defined by | ||
|---|---|---|---|
|
isValid(str:String):Boolean
[static]
Returns
true if the expression in argument is a valid Luhn value. | Luhn | ||