Instance Methodvapor 4.114.1Vapor
hash(_:)
Application+Password.swift:34func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
func hash<Password>(_ password: Password) throws -> [UInt8] where Password : DataProtocol
s5Vapor11ApplicationC8PasswordV4hashySays5UInt8VGxK20FoundationEssentials12DataProtocolRzlF
What are these?23FQQ
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Password
final class Application
Core type representing a Vapor application.
@frozen struct UInt8
An 8-bit unsigned integer value type.
protocol DataProtocol : RandomAccessCollection where Self.Element == UInt8, Self.SubSequence : DataProtocol
var async: AsyncPasswordHasher { get }
var sync: PasswordHasher { get }
func verify<Password, Digest>(_ password: Password, created digest: Digest) throws -> Bool where Password : DataProtocol, Digest : DataProtocol