2016-01-03 03:18:37 +03:00
|
|
|
<?php
|
2016-01-15 12:21:27 +03:00
|
|
|
namespace common\components;
|
2016-01-03 03:18:37 +03:00
|
|
|
|
|
|
|
/**
|
2019-07-15 01:59:56 +03:00
|
|
|
* This class was used for the first generation of passwords on the Ely.by
|
|
|
|
* and should now be systematically cut from the project in order to replace this algorithm
|
|
|
|
* with a more secure one.
|
2016-01-03 03:18:37 +03:00
|
|
|
*/
|
|
|
|
class UserPass {
|
|
|
|
|
2024-12-02 15:10:55 +05:00
|
|
|
public static function make($email, string $pass): string {
|
|
|
|
return md5($pass . md5(strtolower((string)$email)));
|
2016-01-03 03:18:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|