Documentation
¶
Overview ¶
Package tripledes implements payment related utility functions.
Package tripledes implements convenient functions to encrypt/decrypt data using Triple DES algorithm.
Index ¶
- func DecryptTripleDesCbc(inputKey []byte, data []byte, iv []byte) ([]byte, error)
- func DecryptTripleDesEcb(inputKey []byte, data []byte) ([]byte, error)
- func EncryptTripleDesCbc(inputKey []byte, data []byte, iv []byte) ([]byte, error)
- func EncryptTripleDesEcb(inputKey []byte, data []byte) ([]byte, error)
- func GenerateKcv(key []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptTripleDesCbc ¶
DecryptTripleDesCbc decrypts data with key and iv using Triple DES under CBC mode
func DecryptTripleDesEcb ¶
DecryptTripleEcb decrypts data with key using Triple DES under ECB mode
func EncryptTripleDesCbc ¶
EncryptTripleDesCbc encrypts data with key and iv using Triple DES under CBC mode
func EncryptTripleDesEcb ¶
EncryptTripleDesEcb encrypts data with key using Triple DES under ECB mode
func GenerateKcv ¶
GenerateKcv generates the Key Check Value of the given key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.