@@ -16,10 +16,10 @@ public function testConstructor()
16
16
'time_cost ' => \PASSWORD_ARGON2_DEFAULT_TIME_COST ,
17
17
'threads ' => \PASSWORD_ARGON2_DEFAULT_THREADS ,
18
18
];
19
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
19
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
20
20
$ this ->assertTrue (\true);
21
21
$ options ['algo ' ] = 'argon2i ' ;
22
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
22
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
23
23
$ this ->assertTrue (\true);
24
24
}
25
25
@@ -30,7 +30,7 @@ public function testBcryptError1()
30
30
'algo ' => 'bcrypt ' ,
31
31
'cost ' => 10 ,
32
32
];
33
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
33
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
34
34
$ hash = $ passwordHasher ->create ('55ufbabm5&[-q=`_Br!~K.6NN<rXSsbLQ!A[cd>," \'4\{5$!JmZupv_@A<R_Pc*m7:9-P{t">T.Q=u&s ' );
35
35
}
36
36
@@ -41,7 +41,7 @@ public function testBcryptError2()
41
41
'algo ' => 'bcrypt ' ,
42
42
'cost ' => 10 ,
43
43
];
44
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
44
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
45
45
$ hash = $ passwordHasher ->create ('Hello World! ' );
46
46
if ($ passwordHasher ->verify ('55ufbabm5&[-q=`_Br!~K.6NN<rXSsbLQ!A[cd>," \'4\{5$!JmZupv_@A<R_Pc*m7:9-P{t">T.Q=u&s ' , $ hash ))
47
47
{
@@ -55,7 +55,7 @@ public function testConstructorError1()
55
55
'algo ' => 'other ' ,
56
56
'cost ' => 10 ,
57
57
];
58
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
58
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
59
59
}
60
60
61
61
public function testPasswordCreateAndVerify ()
@@ -64,7 +64,7 @@ public function testPasswordCreateAndVerify()
64
64
'algo ' => 'bcrypt ' ,
65
65
'cost ' => 10 ,
66
66
];
67
- $ passwordHasher = new \Viper \PasswordHashing ($ options );
67
+ $ passwordHasher = new \WebSecure \PasswordHashing ($ options );
68
68
$ this ->assertTrue (\true);
69
69
$ hash = $ passwordHasher ->create ('Hello World! ' );
70
70
$ this ->assertTrue (\true);
@@ -86,7 +86,7 @@ public function testPasswordCreateAndVerify()
86
86
'algo ' => 'bcrypt ' ,
87
87
'cost ' => 15 ,
88
88
];
89
- $ passwordHasher2 = new \Viper \PasswordHashing ($ options );
89
+ $ passwordHasher2 = new \WebSecure \PasswordHashing ($ options );
90
90
$ res = $ passwordHasher2 ->verify ('Hello World! ' , $ hash );
91
91
if (is_array ($ res ))
92
92
{
0 commit comments