Documentation
¶
Index ¶
- type Cipher
- type Format
- func NewANSIX98() Format
- func NewECI1() Format
- func NewECI2() Format
- func NewECI3() Format
- func NewECI4() Format
- func NewFormatter(bType string) (Format, error)
- func NewISO0() Format
- func NewISO1() Format
- func NewISO2() Format
- func NewISO3() Format
- func NewISO4(cipher Cipher) Format
- func NewOEM1() Format
- func NewVISA1() Format
- func NewVISA2() Format
- func NewVISA3() Format
- func NewVISA4() Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format interface {
SetDebugWriter(writer io.Writer)
Encode(pin, account string) (string, error)
Decode(pinBlock, account string) (string, error)
}
func NewFormatter ¶
func NewISO2 ¶
func NewISO2() Format
The ISO-2 PIN Block format is used for smart card offline authentication. It is similar to an ISO-1 PIN Block in that there is no PAN to associate with the PIN. It differs in that the fill is 0xF instead of random digits
func NewISO3 ¶
func NewISO3() Format
ISO 9564-1: 2002 Format 3.
Format 3 is the same as format 0, except that the “fill” digits are random values from 10 to 15, and the first nibble (which identifies the block format) has the value 3.
func NewOEM1 ¶
func NewOEM1() Format
OEM-1 / Diebold / Docutel / NCR
The OEM-1 PIN block format is equivalent to the PIN block formats that Diebold, Docutel, and NCR define. The OEM-1 PIN block format supports a PIN from 4 to 12 digits in length. A PIN that is longer than 12 digits is truncated on the right.
Click to show internal directories.
Click to hide internal directories.