aes

package
v0.0.0-...-89bd919 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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(key []byte, data []byte) (origData []byte, err error)

AesDecrypt aes cbc PKCS5Padding 解密

func AesEncrypt

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

AesEncrypt aes加密 key为任意长度 data为任意长度 使用随机化iv,多次加密结果不同 PKCS5Padding CBC模式

func PKCS5Padding

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

PKCS5Padding 数据填充方式 填充为blockSize的整数倍

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

PKCS5UnPadding 解填充

Types

This section is empty.

Jump to

Keyboard shortcuts

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