hashes

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encodedText string) (string, error)

It takes a string, decodes it from base64, and returns the decoded string

func EncodeBase64

func EncodeBase64(text string) string

It takes a string, converts it to a byte array, and then encodes it using the base64 encoding scheme

func MD5

func MD5(text string) string

It creates a new MD5 hash, then passes it to the stringHasher function along with the text to be hashed and return the hashed text

func SHA256

func SHA256(text string) string

It creates a new SHA256 hash, then passes it to the stringHasher function along with the text to be hashed and return the hashed text

func SHA512

func SHA512(text string) string

It creates a new SHA512 hash, then passes it to the stringHasher function along with the text to be hashed and return the hashed text

Types

This section is empty.

Jump to

Keyboard shortcuts

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