diff --git a/2.0/docs/vapor/hash.md b/2.0/docs/vapor/hash.md index cd67f7b0..129959a6 100644 --- a/2.0/docs/vapor/hash.md +++ b/2.0/docs/vapor/hash.md @@ -2,12 +2,16 @@ Hashing is a one way method of converting arbitrary data into a fixed size format. Unlike ciphers, data that is hashed cannot be retrieved from the resulting digest. Hashes can be used to create keys, file identifiers, or store credentials. + + +> Hash function diagram from [Wikipedia](https://en.wikipedia.org/wiki/Hash_function). + !!! warning - Avoid storing passwords if possible. If you must, please make sure to research the state of the art before continuing. + Avoid storing password hashes if possible. If you must, please make sure to research the state of the art before continuing. ## Make -To hash a string, use the `hash` class on `Droplet`. +To hash a string, use the `hash` property on `Droplet`. ```swift let digest = try drop.hash.make("vapor")