Instance Method (Default implementation)vapor 4.114.1Vapor
hash(_:)
PasswordHasher.swift:15func hash(_ password: String) throws -> String
func hash(_ password: String) throws -> String
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 PasswordHasher : Sendable
@frozen struct String
A Unicode string value that is a collection of characters.
func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
func async(on threadPool: NIOThreadPool, hopTo eventLoop: EventLoop) -> AsyncPasswordHasher
func verify(_ password: String, created digest: String) throws -> Bool