Source File
pbkdf2.go
Belonging Package
golang.org/x/crypto/pbkdf2
// Copyright 2012 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// Package pbkdf2 implements the key derivation function PBKDF2 as defined in// RFC 8018 (PKCS #5 v2.1).//// This package is a wrapper for the PBKDF2 implementation in the// [crypto/pbkdf2] package. It is [frozen] and is not accepting new features.//// [frozen]: https://go.dev/wiki/Frozenpackage pbkdf2import ()// Key derives a key from the password, salt and iteration count, returning a// []byte of length keylen that can be used as cryptographic key. The key is// derived based on the method described as PBKDF2 with the HMAC variant using// the supplied hash function.func (, []byte, , int, func() hash.Hash) []byte {, := pbkdf2.Key(, string(), , , )if != nil {// FIPS 140 enforcement, or an invalid key length.panic()}return}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |