hash

package
v0.0.0-...-4806b60 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRCChecksumIEEE

func CRCChecksumIEEE(key string) uint32

CRCChecksumIEEE for elder api

func MD5

func MD5(s string) string

MD5 for elder api

func MultiMD5

func MultiMD5(s string, times uint) string

MultiMD5 for elder api

Types

type Hash32Repo

type Hash32Repo interface {
	Sum(s string) string
	SumBytes(b []byte) string
	SumTimes(s string, times uint) string
	SumBytesTimes(b []byte, times uint) string
	Sum32(b []byte) (uint32, error)
}

func NewCRC32

func NewCRC32(tab *crc32.Table) Hash32Repo

func NewCRCIEEE

func NewCRCIEEE() Hash32Repo

type HashRepo

type HashRepo interface {
	Sum(s string) string
	SumBytes(b []byte) string
	SumTimes(s string, times uint) string
	SumBytesTimes(b []byte, times uint) string
}

func NewHashRepo

func NewHashRepo(h crypto.Hash) HashRepo

func NewMD5

func NewMD5() HashRepo

func NewSHA1

func NewSHA1() HashRepo

func NewSHA224

func NewSHA224() HashRepo

func NewSHA256

func NewSHA256() HashRepo

func NewSHA384

func NewSHA384() HashRepo

func NewSHA512

func NewSHA512() HashRepo

func NewSHA512_224

func NewSHA512_224() HashRepo

func NewSHA512_256

func NewSHA512_256() HashRepo

Jump to

Keyboard shortcuts

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