package main import ( "hash" "golang.org/x/crypto/pbkdf2" ) // bcrypt_pbkdf const magic = "OxychromaticBlowfishSwatDynamite" func Key(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte { return pbkdf2.Key(password, salt, iter, keyLen, h) }