Documentation ¶
Overview ¶
A credit card number is composed by a six-digit Issuer Identification Number (IIN), a variable length (7-12) individual account identifier and a single check digit.
Index ¶
Constants ¶
View Source
const (
// The radix to cipher Credit Cards (i.e. decimal numbers) is 10
CCRadix = 10
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FpeCreditCard ¶
type FpeCreditCard interface { // Crypt encrypts or decrypts a credit card number. Crypt(src string) (string, error) }
func NewFPECreditCardProcessor ¶
func NewFPECreditCardProcessor(m cipher.BlockMode) FpeCreditCard
Click to show internal directories.
Click to hide internal directories.