des

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesDecrypt

func DesDecrypt(cipherText, iv, key []byte) ([]byte, error)

des 解密 cipherText: 密文 key:密钥 返回 解密后的结果和错误

func DesEncrypt

func DesEncrypt(plainText, iv, key []byte) ([]byte, error)

des 加密 plainText: 明文 key:密钥 返回 加密后的结果和错误

func TripleDesDecrypt

func TripleDesDecrypt(cipherText, iv, key []byte) ([]byte, error)

3des 解密 cipherText: 密文 key:密钥 返回 解密后的结果和错误

func TripleDesEncrypt

func TripleDesEncrypt(plainText, iv, key []byte) ([]byte, error)

3des 加密 plainText: 明文 key:密钥 返回 加密后的结果和错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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