hash

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CryptoTimeHashPadding = byte(0x59)
View Source
var TimeHashBase = []byte{75, 79, 78, 83, 73, 84, 69, 89}

Functions

func CryptoTimeHash

func CryptoTimeHash(data []byte, timestamp int64, key []byte) string

func DataOfCryptoTimeHash

func DataOfCryptoTimeHash(encoded string, key []byte) []byte

func DataOfTimeHash

func DataOfTimeHash(encoded string) []byte

func FindDataOfTimeHash

func FindDataOfTimeHash(encoded string, key []byte) []byte

func TimeHash

func TimeHash(data []byte, timestamp int64) string

encode data with timestamp `data` can't be nil or empty slice, `timestamp` can't less than or equal to 0

func TimestampOfTimeHash

func TimestampOfTimeHash(encoded string) int64

func ValidateTimeHash

func ValidateTimeHash(encoded string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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