From aa23a15b22df39595b9a465225f9919bc3b346f1 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Fri, 3 Mar 2017 19:45:41 +0100 Subject: [PATCH] diagram --- 2.0/docs/vapor/hash.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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")