encryption

package
v1.18.0-RC10 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 4

Documentation

Overview

Provides the data structures and methods used in encryption.

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

  • data is the data to hash

func Hash

func Hash(data interface{}) string

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

  • data is the data to hash

func RawFastHash

func RawFastHash(data interface{}) []byte

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

  • data is the data to hash

func RawHash

func RawHash(data interface{}) []byte

RawHash Logic to hash the text and return the hash bytes

  • data is the data to hash

func ShaHash added in v1.11.0

func ShaHash(data interface{}) []byte

ShaHash hash the given data and return the hash as hex string

  • data is the data to hash

Types

type HashBytes

type HashBytes [HASH_LENGTH]byte

HashBytes hash bytes

Jump to

Keyboard shortcuts

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