14 lines
300 B
PHP
Raw Normal View History

2017-08-03 11:04:29 +02:00
<?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));
}
}