crypto

package
v0.0.0-...-a7b0e50 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeSting

func DeSting(str, key []byte) ([]byte, error)

DeSting string use aes decrypt

func EnSting

func EnSting(str, key []byte) ([]byte, error)

EnSting string use aes encrypt

func Md5Encrypt

func Md5Encrypt(data string) string

Md5Encrypt MD5 encrypt

func PKCS5Padding

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

PKCS5Padding func

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

PKCS5UnPadding func

func RandomString

func RandomString(n int) string

RandomString ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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