src/Ease/User.php
public function encryptPassword($plainTextPassword)
    {
        $encryptedPassword = '';
        for ($i = 0; $i < 10; ++$i) {
            $encryptedPassword .= $this->randomNumber();
        }
        $passwordSalt      = substr(md5($encryptedPassword), 0, 2);
        $encryptedPassword = md5($passwordSalt.$plainTextPassword).':'.$passwordSalt;

        return $encryptedPassword;
    }
public function encryptPassword($plainTextPassword)
    {
        $encryptedPassword = '';
        for ($i = 0; $i < 10; ++$i) {
            $encryptedPassword .= $this->randomNumber();
        }
        $passwordSalt      = substr(md5($encryptedPassword), 0, 2);
        $encryptedPassword = md5($passwordSalt.$plainTextPassword).':'.$passwordSalt;

        return $encryptedPassword;
    }
Zašifruje heslo.

@param string $plainTextPassword nešifrované heslo (plaintext)

@return string Encrypted password