Vapor Documentation

Structure Application.​Password

public struct Password: PasswordHasher  
%729 Application.Password Application.Password PasswordHasher PasswordHasher Application.Password->PasswordHasher

Member Of

Application

Core type representing a Vapor 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