md4

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 2 Imported by: 0

README

MD4 Implementation

This package contains an identical copy of the MD4 hash implementation from Go's extended cryptography package (golang.org/x/crypto/md4).

Why Vendored?

This MD4 implementation is vendored locally to avoid depending on the golang.org/x/crypto package, which can introduce version conflicts and dependency management issues in go.mod. By maintaining our own copy, we ensure:

  • Stability: No external dependency version conflicts
  • Simplicity: Cleaner go.mod file without xcrypto dependency
  • Control: Full control over the implementation without external changes

Source

The original implementation can be found at:

Usage

This package is intended for internal use within the go-ntlmssp library only. The MD4 hash algorithm is required for NTLM authentication but should not be used for general cryptographic purposes as MD4 is considered cryptographically broken.

Documentation

Overview

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

Index

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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