Vapor Documentation Beta

Structure Async​Password​Hasher

public struct AsyncPasswordHasher

Initializers

init(hasher:​thread​Pool:​event​Loop:​)

public init(hasher: PasswordHasher, threadPool: NIOThreadPool, eventLoop: EventLoop)

Methods

hash(_:​)

public func hash<Password>(_ password: Password) -> EventLoopFuture<[UInt8]> where Password: DataProtocol

verify(_:​created:​)

public func verify<Password, Digest>(_ password: Password, created digest: Digest) -> EventLoopFuture<Bool> where Password: DataProtocol, Digest: DataProtocol

hash(_:​)

public func hash(_ password: String) -> EventLoopFuture<String>

verify(_:​created:​)

public func verify(_ password: String, created digest: String) -> EventLoopFuture<Bool>