From 646cc41696c99ba04123f34a6283e0fa731a434e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 23 Dec 2017 17:00:04 +0100 Subject: [PATCH 1/2] Added a tip about tests and BCrypt --- reference/configuration/security.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index eb9023bf47f..4af551e119b 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -612,6 +612,12 @@ persisting the encoded password alone is enough. All the encoded passwords are ``60`` characters long, so make sure to allocate enough space for them to be persisted. +.. tip:: + + A simple technique to make your tests much faster when using BCrypt is to + set the cost to ``4``, which is minimum value allowed, but only in the + ``test`` environment. + .. _reference-security-firewall-context: Firewall Context From 2bbda3109009d8fa5ff54212896bb79197d4922e Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 2 Jan 2018 15:55:00 +0100 Subject: [PATCH 2/2] Minor reword --- reference/configuration/security.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/configuration/security.rst b/reference/configuration/security.rst index 4af551e119b..2ecc1c79272 100644 --- a/reference/configuration/security.rst +++ b/reference/configuration/security.rst @@ -614,9 +614,9 @@ persisting the encoded password alone is enough. .. tip:: - A simple technique to make your tests much faster when using BCrypt is to - set the cost to ``4``, which is minimum value allowed, but only in the - ``test`` environment. + A simple technique to make tests much faster when using BCrypt is to set + the cost to ``4``, which is the minimum value allowed, in the ``test`` + environment configuration. .. _reference-security-firewall-context: