md5apr1

package
v0.0.0-...-6e3bd19 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const PW_SALT_BYTES = 8

The size of an MD% APR Salt

View Source
const Size = 22

The size of an MD5 APR1 checksum in bytes.

Variables

This section is empty.

Functions

func FromSalt

func FromSalt(salt []byte) hash.Hash

FromSalt returns a new md5Apr1 hash computing the MD5Apr1 checksum based on a fixed salt value Take care to pass a randomly generated salt if using this

func New

func New() hash.Hash

New returns a new md5Apr1 hash computing the MD5Apr1 checksum based on a randomly generated salt

func Sum

func Sum(data []byte) []byte

Sum returns the MD5 APR1 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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