gmd5

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 5 Imported by: 55

Documentation

Overview

Package gmd5 provides useful API for MD5 encryption algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

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

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

EncryptBytes encrypts <data> using MD5 algorithms.

func EncryptFile

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

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

func EncryptString

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

EncryptBytes encrypts string <data> using MD5 algorithms.

func MustEncrypt added in v1.10.1

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 added in v1.10.1

func MustEncryptBytes(data []byte) string

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

func MustEncryptFile added in v1.10.1

func MustEncryptFile(path string) string

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

func MustEncryptString added in v1.10.1

func MustEncryptString(data string) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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