gf: github.com/gogf/gf/g/crypto/gsha1 Index | Files

package gsha1

import "github.com/gogf/gf/g/crypto/gsha1"

Package gsha1 provides useful API for SHA1 encryption algorithms.

Index

Package Files

gsha1.go

func Encrypt Uses

func Encrypt(v interface{}) string

Encrypt encrypts any type of variable using SHA1 algorithms. It uses gconv package to convert <v> to its bytes type.

func EncryptFile Uses

func EncryptFile(path string) (encrypt string, err error)

EncryptFile encrypts file content of <path> using SHA1 algorithms.

func EncryptString Uses

func EncryptString(s string) string

EncryptString is alias of Encrypt. Deprecated.

Package gsha1 imports 6 packages (graph). Updated 2019-07-15. Refresh now. Tools for package owners.