kcrypto

package
v0.0.0-...-f638652 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* 包kcrypte包含了关于密码学加解密的封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32Data

func CRC32Data(data []byte) uint32

对字节数组进行CRC加密并返回其结果。

func CRC32String

func CRC32String(str string) uint32

对字符串进行CRC加密并返回其结果。

func MD5Data

func MD5Data(data []byte) string

对字节数组进行MD5加密并返回其结果。

func MD5String

func MD5String(str string) string

对字符串进行MD5加密并返回其结果。

func SHA1Data

func SHA1Data(data []byte) string

对字节数组进行SHA1加密并返回其结果。

func SHA1String

func SHA1String(str string) string

对字符串进行SHA1加密并返回其结果。

func SHA256Data

func SHA256Data(data []byte) string

对字节数组进行SHA256加密并返回其结果。

func SHA256String

func SHA256String(str string) string

对字符串进行SHA256加密并返回其结果。

Types

This section is empty.

Jump to

Keyboard shortcuts

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