hashlib

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPAPIHmac

func DPAPIHmac(hashName string, pwdhash, hmacSalt, value []byte) []byte

Internal function used to compute HMACs of DPAPI structures.

func Hmac

func Hmac(key, msg []byte, digestmod string) []byte

func New

func New(name string, data []byte) []byte

func Pbkdf2

func Pbkdf2(passphrase, salt []byte, keyLen, iterations int, digest string) (result []byte)
 Implementation of PBKDF2 that allows specifying digest algorithm.
	   Returns the corresponding expanded key which is keylen long.

func Pbkdf2Hmac

func Pbkdf2Hmac(hashName string, password, salt []byte, iterations int) []byte

func Pbkdf2Ms

func Pbkdf2Ms(passphrase, salt []byte, keyLen, iterations int, digest string) []byte
 Implementation of PBKDF2 that allows specifying digest algorithm.
	Returns the corresponding expanded key which is keylen long.
	Note: This is not real pbkdf2, but instead a slight modification of it.
	Seems like Microsoft tried to implement pbkdf2 but got the xoring wrong.

Types

This section is empty.

Jump to

Keyboard shortcuts

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