Protocolvapor 4.114.1Vapor
PasswordHasher
PasswordHasher.swift:3protocol PasswordHasher : Sendable
Browse conforming typesprotocol PasswordHasher : Sendable
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.
protocol Sendable
func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
func verify<Password, Digest>(_ password: Password, created digest: Digest) throws -> Bool where Password : DataProtocol, Digest : DataProtocol
func async(on threadPool: NIOThreadPool, hopTo eventLoop: EventLoop) -> AsyncPasswordHasher
func hash(_ password: String) throws -> String
func verify(_ password: String, created digest: String) throws -> Bool