utils

package
v0.0.0-...-96c7ced Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(text string, key []byte) (string, error)

func Encrypt

func Encrypt(text string, key []byte) (string, error)

AES-128-cbc AES加密数据块分组长度必须为128bit(byte[16]) 密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个 加密结果最后转成base64

Types

This section is empty.

Jump to

Keyboard shortcuts

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