crypto

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDeCrypt

func AESCBCDeCrypt(key []byte, str string) (string, error)

CBC模式解密

func AESCBCEnCrypt

func AESCBCEnCrypt(key, str []byte) (string, error)

AES-128。key长度:16, 24, 32 bytes 对应 AES-128, AES-192, AES-256

func AESDeCrypt

func AESDeCrypt(key []byte, str string) (string, error)

func AESEnCrypt

func AESEnCrypt(key, str []byte) (string, error)

https://zh.wikipedia.org/wiki/%E5%88%86%E7%BB%84%E5%AF%86%E7%A0%81%E5%B7%A5%E4%BD%9C%E6%A8%A1%E5%BC%8F#%E5%B8%B8%E7%94%A8%E6%A8%A1%E5%BC%8F 分组工作密码模式 CBC模式加密 key长度32以内,如果超过32截断,不足32个字节,用0补齐

Types

This section is empty.

Jump to

Keyboard shortcuts

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