pbkdf2

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: BSD-3-Clause 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 the same as that used by Python's passlib and is compatible.

Index

Constants

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

Variables

View Source
var SHA1Crypter abstract.Scheme

An implementation of Scheme implementing a number of PBKDF2 modular crypt formats used by Python's passlib ($pbkdf2$, $pbkdf2-sha256$, $pbkdf2-sha512$).

Uses RecommendedRounds.

WARNING: SHA1 should not be used for new applications under any circumstances. It should be used for legacy compatibility only.

View Source
var SHA256Crypter abstract.Scheme
View Source
var SHA512Crypter abstract.Scheme

Functions

func New

func New(ident string, hf func() hash.Hash, rounds int) abstract.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