Instance Method
hash(_:cost:)
Creates a new BCrypt hash with a randomly generated salt. The result can be stored in a database.
func hash(_ plaintext: String, cost: Int = 12) throws -> String
Instance Method
func hash(_ plaintext: String, cost: Int = 12) throws -> String