2016-01-03 05:48:37 +05:30
|
|
|
<?php
|
2016-01-15 14:51:27 +05:30
|
|
|
namespace common\components;
|
2016-01-03 05:48:37 +05:30
|
|
|
|
|
|
|
/**
|
2019-07-15 04:29:56 +05:30
|
|
|
* 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 05:48:37 +05:30
|
|
|
*/
|
|
|
|
class UserPass {
|
|
|
|
|
2024-12-02 15:40:55 +05:30
|
|
|
public static function make($email, string $pass): string {
|
|
|
|
return md5($pass . md5(strtolower((string)$email)));
|
2016-01-03 05:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|