des

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesCbcDecrypt

func DesCbcDecrypt(cipherText, secretKey, ivDes []byte) ([]byte, error)

func DesCbcDecryptByBase64

func DesCbcDecryptByBase64(cipherTextBase64 string, secretKey, ivAes []byte) (plainText []byte, err error)

func DesCbcDecryptByHex

func DesCbcDecryptByHex(cipherTextHex string, secretKey, ivAes []byte) (plainText []byte, err error)

func DesCbcEncrypt

func DesCbcEncrypt(plainText, secretKey, ivDes []byte) ([]byte, error)

func DesCbcEncryptBase64

func DesCbcEncryptBase64(plainText, secretKey, ivAes []byte) (cipherTextBase64 string, err error)

func DesCbcEncryptHex

func DesCbcEncryptHex(plainText, secretKey, ivAes []byte) (cipherTextHex string, err error)

func TripleDesDecrypt

func TripleDesDecrypt(cipherText, secretKey, ivDes []byte) (plainText []byte, err error)

func TripleDesDecryptByBase64

func TripleDesDecryptByBase64(cipherTextBase64 string, secretKey, ivAes []byte) (plainText []byte, err error)

func TripleDesDecryptByHex

func TripleDesDecryptByHex(cipherTextHex string, secretKey, ivAes []byte) (plainText []byte, err error)

func TripleDesEncrypt

func TripleDesEncrypt(plainText, secretKey, ivDes []byte) ([]byte, error)

func TripleDesEncryptBase64

func TripleDesEncryptBase64(plainText, secretKey, ivAes []byte) (cipherTextBase64 string, err error)

func TripleDesEncryptHex

func TripleDesEncryptHex(plainText, secretKey, ivAes []byte) (cipherTextHex string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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