Documentation ¶
Index ¶
- func CbcDecrypt(decryptStr string, key, iv string) (string, error)
- func CbcEncrypt(encrypt, key, iv string) (string, error)
- func CfbDecrypt(decryptStr string, key, iv string) (string, error)
- func CfbEncrypt(encrypt, key, iv string) (string, error)
- func EcbDecrypt(decryptStr, key string) (string, error)
- func EcbEncrypt(encrypt, key string) (string, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- type Ecb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CbcDecrypt ¶
*
- @Description: cbc decrypt
- @param: decryptStr
- @param: key
- @param: iv
- @return: string
- @return: error
- @Author: Iori 2023-03-06 17:04:03
*
func CbcEncrypt ¶
*
- @Description: cbc encryption 128bit
- @param: encryptStr
- @param: key
- @param: iv
- @return: string
- @return: error
- @Author: Iori 2023-03-06 17:02:27
*
func CfbDecrypt ¶
* * @Description: cfb decrypt * @param: decryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:04:03 *
func CfbEncrypt ¶
* * @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 ¶
* * @Description: Ecb decrypt * @param: decryptStr * @param: key * @param: iv * @return: string * @return: error * @Author: Iori * @Date: 2023-03-06 17:27:21 *
func EcbEncrypt ¶
* * @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 ¶
* * @Description: Ecb decrypter * @param: b * @return: cipher.BlockMode * @Author: Iori * @Date: 2023-03-06 17:41:46 *