Versions in this module Expand all Collapse all v0 v0.1.1 Mar 22, 2020 v0.1.0 Jun 16, 2019 Changes in this version + var ErrInvalidKeyLength = errors.New("invalid key length") + var ZeroIv []byte = []byte + func DecryptDes(data []byte, key []byte) ([]byte, error) + func DecryptTripleDes(data []byte, key []byte) ([]byte, error) + func DecryptTripleDesEde2(key []byte, data []byte, paddingType PaddingType) ([]byte, error) + func EncryptDes(data []byte, key []byte) ([]byte, error) + func EncryptDesCbc(data []byte, key []byte) ([]byte, error) + func EncryptTripleDes(data []byte, key []byte) ([]byte, error) + func EncryptTripleDesEde2(key []byte, data []byte, paddingType PaddingType) ([]byte, error) + func GenerateDesKey(keyLen int) ([]byte, error) + func RotN(n int, val string) string + type DesMode int + const Cbc + const Ecb + type PaddingType int + const DesBlockSize + const Iso9797M1Padding + const Iso9797M2Padding + func (paddingType PaddingType) Pad(data []byte) []byte + func (paddingType PaddingType) RemovePad(paddedData []byte) []byte