gmd5

package
v1.13.3-0...-5aac4af Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 5 Imported by: 0

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

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

func MustEncryptBytes(data []byte) string

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

func MustEncryptFile

func MustEncryptFile(path string) string

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

func MustEncryptString

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