crypto

package
v0.0.0-...-3e06d77 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecode

func AesDecode(cipherText, keyText string) (string, error)

func AesEncode

func AesEncode(plainText, keyText string) (string, error)

*

  • plainText 明文
  • keyText, 必须是16、24或者32位的[]byte,分别对应AES-128, AES-192或AES-256算法 * *

func DesEncode

func DesEncode()

func Md5

func Md5(str, salt string) string

func Md5Double

func Md5Double(str, salt string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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