hashs

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package hashs 多种哈希.

包括 SipHash24.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func SipHash128

func SipHash128(bs []byte) (uint64, uint64)

SipHash128 哈希.

Example
package main

import (
	"fmt"

	"gitee.com/xuender/oils/hashs"
)

func main() {
	fmt.Println(hashs.SipHash128([]byte("123")))

}
Output:

8693645449139915215 11618447955228391416

func SipHash64

func SipHash64(bs []byte) uint64

SipHash64 哈希,和Google Guava的sipHash24相同.

Example
package main

import (
	"fmt"

	"gitee.com/xuender/oils/hashs"
)

func main() {
	fmt.Println(hashs.SipHash64([]byte("123")))

}
Output:

9379172312344772015

Types

This section is empty.

Jump to

Keyboard shortcuts

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