gf: Index | Files

package gmd5

import ""

Package gmd5 provides useful API for MD5 encryption algorithms.


Package Files


func Encrypt Uses

func Encrypt(v 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 EncryptFile Uses

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

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

func EncryptString Uses

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

EncryptString is alias of Encrypt. Deprecated.

Package gmd5 imports 6 packages (graph) and is imported by 2 packages. Updated 2019-07-15. Refresh now. Tools for package owners.