Packagesekati.crypt
Classpublic final class Luhn
ImplementsIHash

Validate a number with the Luhn Algorithm (aka Mod10) which is standard for pre-validating card numbers before being processed for approval.

See also

http://en.wikipedia.org/wiki/Luhn_algorithm


Public Methods
 MethodDefined by
  
Luhn()
Luhn Static Constructor
Luhn
  
mod10(strNumber:String):Boolean
[static] Validate a credit card number with mod10
Luhn
Constructor detail
Luhn()constructor
public function Luhn()

Luhn Static Constructor

Method detail
mod10()method
public static function mod10(strNumber:String):Boolean

Validate a credit card number with mod10

Parameters
strNumber:String

Returns
Boolean