Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dchest/bcrypt_pbkdf
Go implementation of bcrypt_pbkdf(3) from OpenBSD
https://github.com/dchest/bcrypt_pbkdf
Last synced: 23 days ago
JSON representation
Go implementation of bcrypt_pbkdf(3) from OpenBSD
- Host: GitHub
- URL: https://github.com/dchest/bcrypt_pbkdf
- Owner: dchest
- License: bsd-2-clause
- Created: 2014-04-07T23:08:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T18:45:40.000Z (almost 10 years ago)
- Last Synced: 2024-10-14T12:08:18.849Z (about 1 month ago)
- Language: Go
- Homepage: http://godoc.org/github.com/dchest/bcrypt_pbkdf
- Size: 176 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
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
* http://www.tedunangst.com/flak/post/bcrypt-pbkdf
* http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/bcrypt_pbkdf.c