encrypt

package
v0.0.0-...-0b50f6a Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

func AesDecryptString

func AesDecryptString(pass64 string, aeskey []byte) ([]byte, error)

AesDecryptString 用户密码解密函数

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

func AesEncryptString

func AesEncryptString(orginString, aeskey []byte) (string, error)

AesEncryptString 用户密码加密函数

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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