14 lines
300 B
PHP
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));
|
|
}
|
|
} |