crypto

package
v0.0.0-...-4e81ba4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(crypted, key, iv []byte) ([]byte, error)

AesCBCDecrypt .

func AesCBCEncrypt

func AesCBCEncrypt(EncSrc, key, iv []byte) ([]byte, error)

AesCBCEncrypt .

func AesCFBDecrypt

func AesCFBDecrypt(DecSrc, key, iv []byte) ([]byte, error)

AesCFBDecrypt .

func AesCFBEncrypt

func AesCFBEncrypt(EncSrc, key, iv []byte) ([]byte, error)

AesCFBEncrypt .

func MD5

func MD5(b []byte) string

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func SHA1

func SHA1(b []byte) string

func SHA256

func SHA256(b []byte) string

func SHA512

func SHA512(b []byte) string

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