pbkdf2

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pbkdf2 implements a modular crypt format for PBKDF2-SHA1, PBKDF2-SHA256 and PBKDF-SHA512.

The format is similar to the one used in Python's passlib, and is compatible.

Index

Constants

View Source
const (
	SaltLength              = 16
	RecommendedRoundsSHA1   = 131000
	RecommendedRoundsSHA256 = 29000
	RecommendedRoundsSHA512 = 25000
)

Variables

View Source
var (
	// Scheme implementation implementing a number of
	// PBKDF2 modular crypt formats used by Python's passlib
	// ($pbkdf2$, $pbkdf2-sha256$, $pbkdf2-sha512$).
	// Uses RecommendedRounds.
	// WARNING: SHA1 should never be used in new applications.
	// It should only be used for compatibility with legacy applications.
	SHA1Crypter   scheme.Scheme
	SHA256Crypter scheme.Scheme
	SHA512Crypter scheme.Scheme
)

Functions

func New

func New(ident string, hf func() hash.Hash, rounds int) scheme.Scheme

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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