func hashPassword(password string) []byte {
	saltHasher := sha3.New256()
	saltHasher.Write([]byte(password))

	return pbkdf2.Key([]byte(password), saltHasher.Sum(nil), 4096, 32, sha3.New256)
}
// hashes the provided user password into an appropriate AES key
// takes the sha3 of the user's password as the salt for pbkdf2.
hashes the provided user password into an appropriate AES key
takes the sha3 of the user's password as the salt for pbkdf2.
// hashes the provided user password into an appropriate AES key // takes the sha3 of the user ' s password as the salt for pbkdf2 .
func hashPassword(password string) []byte {
	saltHasher := sha3.New256()
	saltHasher.Write([]byte(password))
	return pbkdf2.Key([]byte(password), saltHasher.Sum(nil), 4096, 32, sha3.New256)
}
func hashPassword ( password string ) [ ] byte { saltHasher := sha3 . New256 ( ) saltHasher . Write ( [ ] byte ( password ) ) return pbkdf2 . Key ( [ ] byte ( password ) , saltHasher . Sum ( nil ) , 4096 , 32 , sha3 . New256 ) }
hashes the provided user password into an appropriate AES key
takes the sha3 of the user's password as the salt for pbkdf2.
hashes the provided user password into an appropriate AES key takes the sha3 of the user ' s password as the salt for pbkdf2 .