|
|
|
|
@ -17,10 +17,7 @@ use OCP\IConfig; |
|
|
|
|
* Class HasherTest |
|
|
|
|
*/ |
|
|
|
|
class HasherTest extends \Test\TestCase { |
|
|
|
|
/** |
|
|
|
|
* @return array |
|
|
|
|
*/ |
|
|
|
|
public function versionHashProvider() { |
|
|
|
|
public static function versionHashProvider(): array { |
|
|
|
|
return [ |
|
|
|
|
['asf32äà$$a.|3', null], |
|
|
|
|
['asf32äà$$a.|3|5', null], |
|
|
|
|
@ -30,7 +27,7 @@ class HasherTest extends \Test\TestCase { |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function hashProviders70_71(): array { |
|
|
|
|
public static function hashProviders70_71(): array { |
|
|
|
|
return [ |
|
|
|
|
// Valid SHA1 strings |
|
|
|
|
['password', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', true], |
|
|
|
|
@ -66,7 +63,7 @@ class HasherTest extends \Test\TestCase { |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function hashProviders72(): array { |
|
|
|
|
public static function hashProviders72(): array { |
|
|
|
|
return [ |
|
|
|
|
// Valid ARGON2 hashes |
|
|
|
|
['password', '2|$argon2i$v=19$m=1024,t=2,p=2$T3JGcEkxVFNOVktNSjZUcg$4/hyLtSejxNgAuzSFFV/HLM3qRQKBwEtKw61qPN4zWA', true], |
|
|
|
|
@ -83,7 +80,7 @@ class HasherTest extends \Test\TestCase { |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function hashProviders73(): array { |
|
|
|
|
public static function hashProviders73(): array { |
|
|
|
|
return [ |
|
|
|
|
// Valid ARGON2ID hashes |
|
|
|
|
['password', '2|$argon2id$v=19$m=65536,t=4,p=1$TEtIMnhUczliQzI0Y01WeA$BpMUDrApy25iagIogUAnlc0rNTPJmGs8lOEeVHujJ9Q', true], |
|
|
|
|
|