md4

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package md4 implements the MD4 hash algorithm as defined in RFC 1320.

Index

Examples

Constants

View Source
const BlockSize = 64

The blocksize of MD4 in bytes.

View Source
const Size = 16

The size of an MD4 checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the MD4 checksum.

Example
package main

import (
	"fmt"
	"io"

	"golang.org/x/crypto/md4"
)

func main() {
	h := md4.New()
	data := "These pretzels are making me thirsty."
	io.WriteString(h, data)
	fmt.Printf("%x", h.Sum(nil))
}
Output:

48c4e365090b30a32f084c4888deceaa

Types

This section is empty.

Jump to

Keyboard shortcuts

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