ReadonlylongA human-readable name of the algorithm.
ReadonlynameThe cdigit name of the algorithm.
Generates the check characters from the argument using the algorithm.
Unlike generate(), this method returns the check characters only.
A string without check characters.
The check characters.
Generates the check characters from the argument using the algorithm. This
method is an alphabet-independent equivalent of compute(), where the
return value and argument are both represented as arrays of each digit's
numerical value.
A string without check characters decoded to an array of numerical values.
The check characters decoded to an array of numerical values.
Generates the protected string from the argument using the algorithm. The generated string consists of the original bare string and computed check characters, which are combined in accordance with the algorithm.
A string without check characters.
The string with check characters.
Splits a protected string into the pair of original bare string and check characters.
A string with check characters.
The tuple of [string without check characters, check characters].
Checks if a protected string is valid per the algorithm.
A string with check characters.
True if the argument is valid.
The common interface for check digit algorithm implementations.