crypto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OVERHEAD = aes.BlockSize

Functions

func Decrypt

func Decrypt(ciphertext, key []byte) ([]byte, error)

Decrypt AES CTR

func Encrypt

func Encrypt(plaintext, key []byte) ([]byte, error)

Encrypt AES CTR

func InitEncryption

func InitEncryption(passwd string)

InitEncryption generate secret key、protocal separator、protocal feature

func Md5

func Md5(text string) string

Md5 Hash

func Md5Raw

func Md5Raw(text string) []byte

Md5 Hash return byte

func Sha256

func Sha256(text string) string

Sha256 Hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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