Skip to content

Instance Method

hash(_:)

Hashes a password using PBKDF2.
func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol

Parameters

password

The password to hash.

Return Value

The hash string as UTF-8 bytes.