Vapor Documentation Beta

Protocol Password​Hasher

public protocol PasswordHasher
%3 PasswordHasher PasswordHasher Application.Password Application.Password Application.Password->PasswordHasher Request.Password Request.Password Request.Password->PasswordHasher

Types Conforming to Password​Hasher

Application.Password
Request.Password

Requirements

hash(_:​)

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

verify(_:​created:​)

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