encrypt

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(encryptText string, key string) string

TODO:错误处理不够完善,容易panic

func AesEncrypt

func AesEncrypt(orig string, key string) (r string, err error)

func Base64Decrypt

func Base64Decrypt(data string) ([]byte, error)

func Base64DecryptString

func Base64DecryptString(data []byte) ([]byte, error)

func Base64Encrypt

func Base64Encrypt(b []byte) string

func Base64EncryptString

func Base64EncryptString(text string) string

func MD5Encrypt

func MD5Encrypt(bs []byte) *md5Sum

func MD5EncryptReader

func MD5EncryptReader(reader io.Reader) *md5Sum

func MD5EncryptString

func MD5EncryptString(text string) *md5Sum

Types

This section is empty.

Jump to

Keyboard shortcuts

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