package md4
Import Path
golang.org/x/crypto/md4 (on go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Involved Source Files
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Deprecated: MD4 is cryptographically broken and should should only be used
where compatibility with legacy systems, not security, is the goal. Instead,
use a secure hash like SHA-256 (from crypto/sha256).
md4block.go
Code Examples
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))
}
Package-Level Functions (only one)
New returns a new hash.Hash computing the MD4 checksum.
Package-Level Constants (total 2)
The blocksize of MD4 in bytes.
The size of an MD4 checksum in bytes.
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |