des

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

*

  • cbc模式. *
  • User: zhangbob
  • Date: 2018/7/5
  • Time: 下午2:14

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, key []byte) ([]byte, error)

func DecryptToCBC

func DecryptToCBC(encodeString string, key []byte) (string, error)

func DesDecrypt

func DesDecrypt(encodeString string, key []byte) (string, error)

DES解密 cbc

func Encrypt

func Encrypt(data, key []byte) ([]byte, error)

des ecb PKCS5

func EncryptToCBC

func EncryptToCBC(src, key string) (string, error)

CBC加密

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func ZeroPadding

func ZeroPadding(ciphertext []byte, blockSize int) []byte

func ZeroUnPadding

func ZeroUnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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