src/Authenticator/HttpDigestAuthenticator.php
protected function generateNonce()
    {
        $expiryTime = microtime(true) + $this->getConfig('nonceLifetime');
        $secret = $this->getConfig('secret');
        $signatureValue = hash_hmac('sha1', $expiryTime . ':' . $secret, $secret);
        $nonceValue = $expiryTime . ':' . $signatureValue;

        return base64_encode($nonceValue);
    }
protected function generateNonce()
    {
        $expiryTime = microtime(true) + $this->getConfig('nonceLifetime');
        $secret = $this->getConfig('secret');
        $signatureValue = hash_hmac('sha1', $expiryTime . ':' . $secret, $secret);
        $nonceValue = $expiryTime . ':' . $signatureValue;

        return base64_encode($nonceValue);
    }
protected function generateNonce ( ) { $ expiryTime = microtime ( true ) + $ this -> getConfig ( 'nonceLifetime' ) ; $ secret = $ this -> getConfig ( 'secret' ) ; $ signatureValue = hash_hmac ( 'sha1' , $ expiryTime . ':' . $ secret , $ secret ) ; $ nonceValue = $ expiryTime . ':' . $ signatureValue ; return base64_encode ( $ nonceValue ) ; }
Generate a nonce value that is validated in future requests.

@return string
Generate a nonce value that is validated in future requests .