pinblock

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 5 Imported by: 0

README

pinblock-go

Golang PIN Block encrypt/decrypt.

Documentation

Index

Constants

View Source
const (
	ISO_0 int = iota
	ISO_1
	ISO_3
)

ISO pin block types.

Variables

This section is empty.

Functions

func DecryptPINBlock

func DecryptPINBlock(isoType int, pan, khex, pinBlockHex string) (string, error)

Decrypt PIN by ISO format & return clear PIN from block as hex encoded string

func EncryptPINBlock

func EncryptPINBlock(isoType int, pin, pan, khex string) (string, error)

Encrypt PIN by ISO format & return encrypted PIN block as hex encoded string

Types

type ISOFormatError

type ISOFormatError int

func (ISOFormatError) Error

func (p ISOFormatError) Error() string

type PINSizeError

type PINSizeError int

func (PINSizeError) Error

func (p PINSizeError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL