Vapor Documentation Beta

Structure Request.​Password

public struct Password: PasswordHasher
%3 Request.Password Request.Password PasswordHasher PasswordHasher Request.Password->PasswordHasher

Member Of

Request

Conforms To

PasswordHasher

Properties

async

var async: AsyncPasswordHasher

sync

var sync: PasswordHasher

Methods

verify(_:​created:​)

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

hash(_:​)

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