Vapor Documentation

Structure Request.​Password

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

Member Of

Request

Represents an HTTP request in an application.

Conforms To

PasswordHasher

Properties

async

public var async: AsyncPasswordHasher  

sync

public 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