File: README

package info (click to toggle)
golang-github-smallstep-crypto 0.63.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,800 kB
  • sloc: sh: 66; makefile: 50
file content (22 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Go implementation of bcrypt_pbkdf(3) from OpenBSD
(a variant of PBKDF2 with bcrypt-based PRF).


USAGE

  func Key(password, salt []byte, rounds, keyLen int) ([]byte, error)

  
  Key derives a key from the password, salt and rounds count, returning a
  []byte of length keyLen that can be used as cryptographic key.
  
  Remember to get a good random salt of at least 16 bytes.  Using a higher
  rounds count will increase the cost of an exhaustive search but will also
  make derivation proportionally slower.


REFERENCES

* https://github.com/dchest/bcrypt_pbkdf
* http://www.tedunangst.com/flak/post/bcrypt-pbkdf
* http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/bcrypt_pbkdf.c