encryption

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const HASH_LENGTH = 32

Variables

This section is empty.

Functions

func FastHash

func FastHash(data interface{}) string

FastHash - sha1 hash the given data and return the hash as hex string

func Hash

func Hash(data interface{}) string

Hash - hash the given data and return the hash as hex string

func RawFastHash

func RawFastHash(data interface{}) []byte

RawFastHash - Logic to sha1 hash the text and return the hash bytes

func RawHash

func RawHash(data interface{}) []byte

RawHash - Logic to hash the text and return the hash bytes

Types

type HashBytes

type HashBytes [HASH_LENGTH]byte

Jump to

Keyboard shortcuts

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