hash

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hash provides utility functions for generating hashes from strings and random keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomKey

func GenerateRandomKey(l int) (string, error)

GenerateRandomKey generates a random string of length l. It returns an empty string and an error if an error occurs while generating a random number.

func IntFromString

func IntFromString(str string) uint64

IntFromString generates a uint64 from a string. Values returned by this function are guaranteed to be the same for equal strings. They are not guaranteed to be unique for different strings.

Types

This section is empty.

Directories

Path Synopsis
Package md5 provides utility functions for generating MD5 hashes.
Package md5 provides utility functions for generating MD5 hashes.
Package oshash implements the algorithm that OpenSubtitles.org uses to generate unique hashes.
Package oshash implements the algorithm that OpenSubtitles.org uses to generate unique hashes.

Jump to

Keyboard shortcuts

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