encryption

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 4 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

func ShaHash added in v1.11.0

func ShaHash(data interface{}) []byte

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