Instance Methodvapor 4.114.1Vapor
hash(_:)
Request+Password.swift:31func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
s5Vapor7RequestC8PasswordV4hashySays5UInt8VGxK20FoundationEssentials12DataProtocolRzlF
What are these?89QJQ
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Password
final class Request
Represents an HTTP request in an application.
@frozen struct UInt8
An 8-bit unsigned integer value type.
protocol DataProtocol : RandomAccessCollection where Self.Element == UInt8, Self.SubSequence : DataProtocol
var async: AsyncPasswordHasher { get }
var sync: PasswordHasher { get }
func verify<Password, Digest>(_ password: Password, created digest: Digest) throws -> Bool where Password : DataProtocol, Digest : DataProtocol