\PasswordHash
Portable PHP password hashing framework.
Synopsis
class PasswordHash
{
- // members
- public $itoa64;
- public $iteration_count_log2;
- public $portable_hashes;
- public $random_state;
- // methods
- public void PasswordHash()
- public void get_random_bytes()
- public void encode64()
- public void gensalt_private()
- public void crypt_private()
- public void gensalt_extended()
- public void gensalt_blowfish()
- public void HashPassword()
- public void CheckPassword()
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
64 | ShortVariable | Avoid variables with short names like $fh. Configured minimum length is 3. |
84 | ShortVariable | Avoid variables with short names like $i. Configured minimum length is 3. |
113 - 156 | CyclomaticComplexity | The method crypt_private() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
119 | ShortVariable | Avoid variables with short names like $id. Configured minimum length is 3. |
193 | ShortVariable | Avoid variables with short names like $i. Configured minimum length is 3. |
195 | ShortVariable | Avoid variables with short names like $c1. Configured minimum length is 3. |
203 | ShortVariable | Avoid variables with short names like $c2. Configured minimum length is 3. |
217 - 250 | CyclomaticComplexity | The method HashPassword() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
40 | 9 | error | The var keyword must not be used to declare a property |
40 | 9 | error | Visibility must be declared on property "$itoa64" |
42 | 9 | error | The var keyword must not be used to declare a property |
42 | 9 | error | Visibility must be declared on property "$iteration_count_log2" |
44 | 9 | error | The var keyword must not be used to declare a property |
44 | 9 | error | Visibility must be declared on property "$portable_hashes" |
46 | 9 | error | The var keyword must not be used to declare a property |
46 | 9 | error | Visibility must be declared on property "$random_state" |
48 | 5 | error | Method name "PasswordHash::PasswordHash" is not in camel caps format |
48 | 5 | error | Visibility must be declared on method "PasswordHash" |
52 | 9 | error | Inline control structures are not allowed |
58 | 60 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
61 | 5 | error | Method name "PasswordHash::get_random_bytes" is not in camel caps format |
61 | 5 | error | Visibility must be declared on method "get_random_bytes" |
81 | 5 | error | Visibility must be declared on method "encode64" |
88 | 13 | error | Inline control structures are not allowed |
91 | 13 | error | Inline control structures are not allowed |
93 | 13 | error | Inline control structures are not allowed |
96 | 13 | error | Inline control structures are not allowed |
104 | 5 | error | Method name "PasswordHash::gensalt_private" is not in camel caps format |
104 | 5 | error | Visibility must be declared on method "gensalt_private" |
113 | 5 | error | Method name "PasswordHash::crypt_private" is not in camel caps format |
113 | 5 | error | Visibility must be declared on method "crypt_private" |
116 | 9 | error | Inline control structures are not allowed |
121 | 9 | error | Inline control structures are not allowed |
125 | 9 | error | Inline control structures are not allowed |
131 | 9 | error | Inline control structures are not allowed |
141 | 44 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
143 | 48 | error | TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" |
158 | 5 | error | Method name "PasswordHash::gensalt_extended" is not in camel caps format |
158 | 5 | error | Visibility must be declared on method "gensalt_extended" |
176 | 5 | error | Method name "PasswordHash::gensalt_blowfish" is not in camel caps format |
176 | 5 | error | Visibility must be declared on method "gensalt_blowfish" |
217 | 5 | error | Method name "PasswordHash::HashPassword" is not in camel caps format |
217 | 5 | error | Visibility must be declared on method "HashPassword" |
228 | 13 | error | Inline control structures are not allowed |
233 | 13 | error | Inline control structures are not allowed |
236 | 13 | error | Inline control structures are not allowed |
240 | 9 | error | Inline control structures are not allowed |
243 | 9 | error | Inline control structures are not allowed |
252 | 5 | error | Method name "PasswordHash::CheckPassword" is not in camel caps format |
252 | 5 | error | Visibility must be declared on method "CheckPassword" |
259 | 9 | error | Inline control structures are not allowed |
Members
public
- $iteration_count_log2
- $itoa64
- $portable_hashes
- $random_state
Methods
public
History
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied