Crypto

package
v0.0.0-...-9d5f6c9 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptDES_CBC

func DecryptDES_CBC(src, key string) string

CBC解密

func DecryptDES_ECB

func DecryptDES_ECB(src, key string) string

ECB解密

func EncryptDES_CBC

func EncryptDES_CBC(src, key string) string

CBC加密

func EncryptDES_ECB

func EncryptDES_ECB(src, key string) string

ECB加密

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

明文补码算法

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

明文减码算法

Types

This section is empty.

Jump to

Keyboard shortcuts

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