Skip to content

Commit

Permalink
Increase a little password work factor to 15
Browse files Browse the repository at this point in the history
And little code improvements
  • Loading branch information
pH-7 committed Mar 19, 2017
1 parent 40c7e01 commit 6a65448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _protected/framework/Security/Security.class.php
Expand Up @@ -22,14 +22,16 @@
final class Security
{
const PWD_ALGORITHM = PASSWORD_BCRYPT;
const PWD_WORK_FACTOR = 15;

const SHA512_ALGORITHM = 'sha512';
const WHIRLPOOL_ALGORITHM = 'whirlpool';

/*** Our salts. Never change these values, otherwise all passwords and other strings will be incorrect ***/
const PREFIX_SALT = 'c好,你今Здраврыве ты ў паітаньне е54йте天rt&eh好嗎_dمرحبا أنت بخير ال好嗎attú^u5atá inniu4a,?478привіなたは大丈夫今日はтивпряьоהעלאai54ng_scси днесpt';
const SUFFIX_SALT = '*éà12_you_觧=≃ù%µµ££$);&,?µp{èàùf*sxdslut_waruआप नमस्क你好,你今ार ठΓει好嗎α σαςb안녕하세oi요 괜찮은 o नमस्कार ठीnjre;,?*-<καλά σήμεραीक आजсегодняm_54tjהעלאdgezsядкمرحبا';

private static $_aPwdOptions = array('cost' => 14);
private static $_aPwdOptions = ['cost' => self::PWD_WORK_FACTOR];

/**
* Private constructor to prevent instantiation of class since it's a static class.
Expand Down

0 comments on commit 6a65448

Please sign in to comment.