Vapor Documentation Beta

Structure Application.​Password

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

Member Of

Application

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