docs: 优化文档展示,适配部分无目录文档,适配非结构体的类型定义,增加测试用例文档
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
# Crypto
|
||||
|
||||
|
||||
|
||||
[](https://pkg.go.dev/github.com/kercylan98/minotaur/crypto)
|
||||

|
||||
|
||||
## 目录
|
||||
列出了该 `package` 下所有的函数,可通过目录进行快捷跳转 ❤️
|
||||
|
||||
|
||||
|
||||
## 目录导航
|
||||
列出了该 `package` 下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️
|
||||
<details>
|
||||
<summary>展开 / 折叠目录</summary
|
||||
<summary>展开 / 折叠目录导航</summary>
|
||||
|
||||
|
||||
> 包级函数定义
|
||||
|
||||
|函数|描述
|
||||
|函数名称|描述
|
||||
|:--|:--
|
||||
|[EncryptBase64](#EncryptBase64)|对数据进行Base64编码
|
||||
|[DecodedBase64](#DecodedBase64)|对数据进行Base64解码
|
||||
@@ -27,51 +28,55 @@
|
||||
|[DecodedSHA256](#DecodedSHA256)|对字节数组进行SHA256加密并返回其结果。
|
||||
|
||||
|
||||
> 结构体定义
|
||||
|
||||
|结构体|描述
|
||||
|:--|:--
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
***
|
||||
## 详情信息
|
||||
#### func EncryptBase64(data []byte) string
|
||||
<span id="EncryptBase64"></span>
|
||||
> 对数据进行Base64编码
|
||||
|
||||
***
|
||||
#### func DecodedBase64(data string) []byte, error
|
||||
<span id="DecodedBase64"></span>
|
||||
> 对数据进行Base64解码
|
||||
|
||||
***
|
||||
#### func EncryptCRC32(str string) uint32
|
||||
<span id="EncryptCRC32"></span>
|
||||
> 对字符串进行CRC加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func DecodedCRC32(data []byte) uint32
|
||||
<span id="DecodedCRC32"></span>
|
||||
> 对字节数组进行CRC加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func EncryptMD5(str string) string
|
||||
<span id="EncryptMD5"></span>
|
||||
> 对字符串进行MD5加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func DecodedMD5(data []byte) string
|
||||
<span id="DecodedMD5"></span>
|
||||
> 对字节数组进行MD5加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func EncryptSHA1(str string) string
|
||||
<span id="EncryptSHA1"></span>
|
||||
> 对字符串进行SHA1加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func DecodedSHA1(data []byte) string
|
||||
<span id="DecodedSHA1"></span>
|
||||
> 对字节数组进行SHA1加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func EncryptSHA256(str string) string
|
||||
<span id="EncryptSHA256"></span>
|
||||
> 对字符串进行SHA256加密并返回其结果。
|
||||
|
||||
***
|
||||
#### func DecodedSHA256(data []byte) string
|
||||
<span id="DecodedSHA256"></span>
|
||||
> 对字节数组进行SHA256加密并返回其结果。
|
||||
|
||||
***
|
||||
|
||||
Reference in New Issue
Block a user