encrypt

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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(crypted, iv, key []byte, useUnPadding bool) (origData []byte, err error)

解密

func AESEncrypt

func AESEncrypt(origData, iv, key []byte) (encrypted []byte, err error)

加密

func MacDecode

func MacDecode(en []byte) (mac []byte, err error)

func MacEncode

func MacEncode(mac []byte) (en []byte, err error)

func PKCS7Padding

func PKCS7Padding(origData []byte, blockSize int) []byte

补码

func PKCS7UnPadding

func PKCS7UnPadding(encrypt []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