cipher

package
v0.0.0-...-4699a84 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)

AesDecryptECB AES_ECB解密

@Description 加密可以调用 cipher.EncryptAES(key , plainText) 函数

@Param []byte key "对称秘钥",必须要16/32位

@Param []byte encrypted "需要解密的字符串"

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)

AesEncryptECB AES_ECB加密

@Description 解密可以调用 cipher.DecryptAES(key ,encryptText) 函数

@Param []byte key "对称秘钥",必须要16/32位

@Param []byte origData "需要加密的字符串内容"

Types

This section is empty.

Jump to

Keyboard shortcuts

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