This commit is contained in:
tanner0101 2020-03-02 18:17:39 -05:00
parent 99c81f89cc
commit 7aeac3fd78
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ CryptoKit includes support for:
Bcrypt is a password hashing algorithm that uses a randomized salt to ensure hashing the same password multiple times doesn't result in the same digest.
Vapor's provides a `Bcrypt` type for hashing and comparing passwords.
Vapor provides a `Bcrypt` type for hashing and comparing passwords.
```swift
import Vapor
@ -35,7 +35,7 @@ import Vapor
let digest = try Bcrypt.hash("test")
```
Because Bcrypt uses a salt, password hashes cannot be compared directly. Both the plaintext password and the digest to check must be verified together.
Because Bcrypt uses a salt, password hashes cannot be compared directly. Both the plaintext password and the existing digest must be verified together.
```swift
import Vapor