/**
  * Create user
  * @param string $login
  * @param $email
  * @param string $password
  * @return bool
  */
 public function createUser($login, $email, $password)
 {
     $result = $this->proxy->createAccountEx($login, $password, AccessLevel::User(), AccountStatus::Active(), $email, null);
     return $result->isOk();
 }
$salt = "ThisIsMySalt";
$result = $proxy->registerOperatorAlgorithm($operatorTag, $salt, $md5AlgoId);
if ($result->isOk()) {
    echo "Operator's algorithm registered\n";
} else {
    echo "Failed to register operator's algorithm\n";
    var_export($result);
    exit;
}
// !!!
// next operations can be used after we've registered algorithm for operator
// !!!
$userName = '******';
$pwd = 'Gamblor';
$hash = md5($salt . $pwd);
$result = $proxy->createAccountWithHash($userName, $hash, $operatorTag, AccessLevel::User(), AccountStatus::Active());
if ($result->isOk()) {
    echo "Account created: {$userName}\n";
} else {
    echo "Failed to create account {$userName}, suppose it's already exist\n";
    $result = $proxy->modifyAccountHash($userName, $hash, $operatorTag);
    if ($result->isOk()) {
        echo "Hash changed for account {$userName}\n";
    } else {
        echo "Failed to change hash for account {$userName}\n";
        var_export($result);
    }
}
// check user password against incorrect
$result = $proxy->checkPassword($userName, $pwd . 'garbage');
if (!$result->isOk()) {