nthash

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

README

nthash License Pipeline PkgGoDev

Package nthash implements the NTLM hashing algorithm.

Documentation

Overview

Package nthash implements the NTLM hashing algorithm.

Example
package main

import (
	"encoding/hex"
	"fmt"

	"gitlab.com/opennota/nthash"
)

func main() {
	h := nthash.New()
	h.Write([]byte("qwerty"))
	fmt.Println(hex.EncodeToString(h.Sum(nil)))

	h = nthash.New()
	h.Write([]byte("Україна"))
	fmt.Println(hex.EncodeToString(h.Sum(nil)))

}
Output:

2d20d252a479f485cdf5e171d93985bf
5ff6b29e1c75a1605f7e09e702638bfe

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the NTLM (NTHash) checksum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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