Structurevapor 4.114.1Vapor
AsyncPasswordHasher
AsyncPasswordHasher.swift:18struct AsyncPasswordHasherstruct AsyncPasswordHasherimport VaporVapor 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.
protocol Sendableinit(hasher: PasswordHasher, threadPool: NIOThreadPool, eventLoop: EventLoop) func hash(_ password: String) -> EventLoopFuture<String> func hash<Password>(_ password: Password) -> EventLoopFuture<[UInt8]> where Password : DataProtocol, Password : Sendable func hash(_ password: String) async throws -> String func hash<Password>(_ password: Password) async throws -> [UInt8] where Password : DataProtocol, Password : Sendable func verify(_ password: String, created digest: String) -> EventLoopFuture<Bool> func verify<Password, Digest>(_ password: Password, created digest: Digest) -> EventLoopFuture<Bool> where Password : DataProtocol, Password : Sendable, Digest : DataProtocol, Digest : Sendable func verify(_ password: String, created digest: String) async throws -> Bool func verify<Password, Digest>(_ password: Password, created digest: Digest) async throws -> Bool where Password : DataProtocol, Password : Sendable, Digest : DataProtocol, Digest : Sendable