hasher

package
v0.0.0-...-971407a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MD5

type MD5 struct {
}

func (MD5) Hash

func (s MD5) Hash(ctx context.Context, key string) (value int64, err error)

returns an integer representation of the hashed key using md5 algorithm

type SHA256

type SHA256 struct {
}

func (SHA256) Hash

func (s SHA256) Hash(ctx context.Context, key string) (value int64, err error)

returns an integer representation of the hashed key using sha256 algorithm

type SHA512

type SHA512 struct {
}

func (SHA512) Hash

func (s SHA512) Hash(ctx context.Context, key string) (value int64, err error)

returns an integer representation of the hashed key using sha512 algorithm

Jump to

Keyboard shortcuts

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