From 2ec2cd438a86874a77febec5ebbf876485a76e03 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Fri, 3 Mar 2017 19:52:14 +0100 Subject: [PATCH] fixes --- 2.0/docs/vapor/hash.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/2.0/docs/vapor/hash.md b/2.0/docs/vapor/hash.md index 7b261f85..6780b2c2 100644 --- a/2.0/docs/vapor/hash.md +++ b/2.0/docs/vapor/hash.md @@ -96,13 +96,16 @@ let drop = try Droplet() drop.hash = CryptoHasher( hmac: .sha256, encoding: .hex, - key: "password".bytes + key: "password".makeBytes() ) ``` ## BCryptHasher -BCrypt is a password hashing function that automatically incorporates salts to increase security. It also offers a configurable work factor that increases the amount of computational resources required to generate a hash ([key stretching](https://en.wikipedia.org/wiki/Key_stretching)). +BCrypt is a password hashing function that automatically incorporates salts and offers a configurable work factor. The work factor can be used to increase the computation required to generate a hash + +!!! seealso + Learn more about [key stretching](https://en.wikipedia.org/wiki/Key_stretching) on Wikipedia. ### Configuration