加密sha1类

package
v0.0.0-...-2910145 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gsha1 提供了用于SHA1加密算法的有用API。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X加密

func X加密(值 interface{}) string

Encrypt 使用SHA1算法对任意类型的变量进行加密。 它使用gconv包将`v`转换为字节类型。

func X加密文件

func X加密文件(路径 string) (sha1值 string, 错误 error)

EncryptFile 使用SHA1算法加密`path`指定文件的内容。

func X加密文件PANI

func X加密文件PANI(路径 string) string

MustEncryptFile 使用SHA1算法加密`path`指定文件的内容。 如果出现任何错误,将会触发panic。

Types

This section is empty.

Jump to

Keyboard shortcuts

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