Skip to content

Commit

Permalink
using base64_encode for nonce generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Preusner committed Feb 8, 2016
1 parent 43f92a0 commit 362a243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EightPoints/Guzzle/WsseAuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ public function generateDigest($nonce, $createdAt, $password) {
*/
public function generateNonce() {

return hash('sha512', uniqid(true));
return base64_encode(hash('sha512', uniqid(true)));
} // end: generateNonce()
} // end: WsseAuthMiddleware

0 comments on commit 362a243

Please sign in to comment.