Remove cipher CrazyCrypt1
This cipher was originally added for integration with CrazyLogin, but now the cipher was included in the crazylogin-integration plugin.
This commit is contained in:
parent
335e8ca498
commit
b7a4259f29
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Cipher;
|
||||
|
||||
class CrazyCrypt1 extends BaseCipher
|
||||
{
|
||||
/**
|
||||
* Once SHA512 hash
|
||||
*/
|
||||
public function hash($value, $salt = "")
|
||||
{
|
||||
// fucking CrazyCrypt1 uses username as salt
|
||||
$username = $salt;
|
||||
|
||||
$text = "ÜÄaeut//&/=I " . $value . "7421€547" . $username . "__+IÄIH§%NK " . $value;
|
||||
$t1 = unpack("H*", $text);
|
||||
$t2 = substr($t1[1], 0, mb_strlen($text, 'UTF-8')*2);
|
||||
$t3 = pack("H*", $t2);
|
||||
|
||||
return hash('sha512', $t3);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user