crypt

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(data, key string) (string, error)

AesDecrypt base64格式的aes加密字符串aes解密

func AesEncrypt

func AesEncrypt(data, key string) (string, error)

AesEncrypt aes对字符串加密,返回base64编码的字符串

func MD5

func MD5(text string) string

MD5 MD5字符串

func PKCS5Padding

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

PKCS5Padding ...

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

PKCS5UnPadding ...

func Sha1

func Sha1(text string) string

Sha1 Sha1字符串

func Sha256

func Sha256(text string) string

Sha256 Sha256字符串

func Sha512

func Sha512(text string) string

Sha512 Sha512字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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