aes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CbcDecrypt

func CbcDecrypt(decryptStr string, key, iv string) (string, error)

*

  • @Description: cbc decrypt
  • @param: decryptStr
  • @param: key
  • @param: iv
  • @return: string
  • @return: error
  • @Author: Iori 2023-03-06 17:04:03

*

func CbcEncrypt

func CbcEncrypt(encrypt, key, iv string) (string, error)

*

  • @Description: cbc encryption 128bit
  • @param: encryptStr
  • @param: key
  • @param: iv
  • @return: string
  • @return: error
  • @Author: Iori 2023-03-06 17:02:27

*

func CfbDecrypt

func CfbDecrypt(decryptStr string, key, iv string) (string, error)

* * @Description: cfb decrypt * @param: decryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:04:03 *

func CfbEncrypt

func CfbEncrypt(encrypt, key, iv string) (string, error)

* * @Description: cfb encryption 128bit * @param: encryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:02:27 *

func EcbDecrypt

func EcbDecrypt(decryptStr, key string) (string, error)

* * @Description: Ecb decrypt * @param: decryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:27:21 *

func EcbEncrypt

func EcbEncrypt(encrypt, key string) (string, error)

* * @Description: Ecb encryption 128bit * @param: encryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:02:27 *

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

* * @Description: Ecb decrypter * @param: b * @return: cipher.BlockMode * @Author: Iori * @Date: 2023-03-06 17:41:46 *

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

* * @Description: Ecb encrypter * @param: b * @return: cipher.BlockMode * @Author: Iori * @Date: 2023-03-06 17:41:46 *

Types

type Ecb

type Ecb struct {
	// contains filtered or unexported fields
}

*

  • ecb
  • @Description:

*

Jump to

Keyboard shortcuts

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