crypto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DESDecrypt

func DESDecrypt(src, key, iv []byte) (res []byte, err error)

DESDecrypt 提供一种 DES 解密的简便用法 使用 CBC 模式, PKCS5 填充

func DESEncrypt

func DESEncrypt(src, key, iv []byte) (res []byte, err error)

DESEncrypt 提供 DES 加密的一种简便用法 使用 CBC 模式, PKCS5 填充

func MD5

func MD5(strList []string) (h string)

使用 MD5 做哈希

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) ([]byte, bool)

func SHA1

func SHA1(sList []string) (res string)

func SHA256

func SHA256(sList []string) (res string)

使用 SHA256 哈希

func SHA512

func SHA512(sList []string) (res string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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