gf: github.com/gogf/gf/crypto/gmd5 Index | Files

package gmd5

import "github.com/gogf/gf/crypto/gmd5"

Package gmd5 provides useful API for MD5 encryption algorithms.

Index

Package Files

gmd5.go

func Encrypt Uses

func Encrypt(data interface{}) (encrypt string, err error)

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

func EncryptBytes Uses

func EncryptBytes(data []byte) (encrypt string, err error)

EncryptBytes encrypts <data> using MD5 algorithms.

func EncryptFile Uses

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

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

func EncryptString Uses

func EncryptString(data string) (encrypt string, err error)

EncryptBytes encrypts string <data> using MD5 algorithms.

func MustEncrypt Uses

func MustEncrypt(data interface{}) string

MustEncrypt encrypts any type of variable using MD5 algorithms. It uses gconv package to convert <v> to its bytes type. It panics if any error occurs.

func MustEncryptBytes Uses

func MustEncryptBytes(data []byte) string

MustEncryptBytes encrypts <data> using MD5 algorithms. It panics if any error occurs.

func MustEncryptFile Uses

func MustEncryptFile(path string) string

MustEncryptFile encrypts file content of <path> using MD5 algorithms. It panics if any error occurs.

func MustEncryptString Uses

func MustEncryptString(data string) string

MustEncryptString encrypts string <data> using MD5 algorithms. It panics if any error occurs.

Package gmd5 imports 5 packages (graph) and is imported by 4 packages. Updated 2020-06-12. Refresh now. Tools for package owners.