crypto

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

README

Crypto

Go doc

暂无介绍...

目录导航

列出了该 package 下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️

展开 / 折叠目录导航

包级函数定义

函数名称 描述
EncryptBase64 对数据进行Base64编码
DecodedBase64 对数据进行Base64解码
EncryptCRC32 对字符串进行CRC加密并返回其结果。
DecodedCRC32 对字节数组进行CRC加密并返回其结果。
EncryptMD5 对字符串进行MD5加密并返回其结果。
DecodedMD5 对字节数组进行MD5加密并返回其结果。
EncryptSHA1 对字符串进行SHA1加密并返回其结果。
DecodedSHA1 对字节数组进行SHA1加密并返回其结果。
EncryptSHA256 对字符串进行SHA256加密并返回其结果。
DecodedSHA256 对字节数组进行SHA256加密并返回其结果。

详情信息

func EncryptBase64(data []byte) string

对数据进行Base64编码


func DecodedBase64(data string) ([]byte, error)

对数据进行Base64解码


func EncryptCRC32(str string) uint32

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


func DecodedCRC32(data []byte) uint32

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


func EncryptMD5(str string) string

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


func DecodedMD5(data []byte) string

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


func EncryptSHA1(str string) string

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


func DecodedSHA1(data []byte) string

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


func EncryptSHA256(str string) string

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


func DecodedSHA256(data []byte) string

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


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodedBase64

func DecodedBase64(data string) ([]byte, error)

DecodedBase64 对数据进行Base64解码

func DecodedCRC32

func DecodedCRC32(data []byte) uint32

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

func DecodedMD5

func DecodedMD5(data []byte) string

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

func DecodedSHA1

func DecodedSHA1(data []byte) string

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

func DecodedSHA256

func DecodedSHA256(data []byte) string

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

func EncryptBase64

func EncryptBase64(data []byte) string

EncryptBase64 对数据进行Base64编码

func EncryptCRC32

func EncryptCRC32(str string) uint32

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

func EncryptMD5

func EncryptMD5(str string) string

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

func EncryptSHA1

func EncryptSHA1(str string) string

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

func EncryptSHA256

func EncryptSHA256(str string) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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