des

package
v0.0.0-...-b9c2e52 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesDecrypt

func DesDecrypt(data, key []byte, desType adesconst.DesType, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

DesDecrypt *

  • @Description: DES解密
  • @param data
  • @param key
  • @param desType DES种类 DES/3DES
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return err

func DesEncrypt

func DesEncrypt(data, key []byte, desType adesconst.DesType, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

DesEncrypt *

  • @Description: Des加密
  • @param data
  • @param key
  • @param desType DES种类 DES/3DES
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return error

func OnceDesDecrypt

func OnceDesDecrypt(data, key []byte, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

OnceDesDecrypt *

  • @Description: DES解密
  • @param data
  • @param key
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return err

func OnceDesEncrypt

func OnceDesEncrypt(data, key []byte, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

OnceDesEncrypt *

  • @Description: Des加密
  • @param data
  • @param key
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return error

func TripleDesDecrypt

func TripleDesDecrypt(data, key []byte, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

TripleDesDecrypt *

  • @Description: DES解密
  • @param data
  • @param key
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return err

func TripleDesEncrypt

func TripleDesEncrypt(data, key []byte, mode adesconst.EncryptMode, padMode adesconst.PaddingMode) (out []byte, err error)

TripleDesEncrypt *

  • @Description: Des加密
  • @param data
  • @param key
  • @param mode 加密模式 CBC/ECB/CTR/OFB/CFB
  • @return out
  • @return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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