2017-08-03 11:04:29 +02:00

14 lines
300 B
PHP

<?php
namespace App\Providers;
use Antadis\Security\Wsse\DigesterInterface;
class Digester implements DigesterInterface {
/**
* @return string
*/
public function generate($nonce, $created, $password) {
return base64_encode(sha1($nonce.$created.$password, false));
}
}