Skip to content

Commit

Permalink
Changed underlying HMAC algo. to sha512.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Mc. committed Jan 12, 2013
1 parent 32a5c80 commit fd9b451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.sign = function(val, secret){
if ('string' != typeof val) throw new TypeError('cookie required');
if ('string' != typeof secret) throw new TypeError('secret required');
return val + '.' + crypto
.createHmac('sha256', secret)
.createHmac('sha512', secret)
.update(val)
.digest('base64')
.replace(/\=+$/, '');
Expand Down

1 comment on commit fd9b451

@JohnMcLear
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broke Etherpad, congrats ;)
ether/etherpad-lite#1738

Please sign in to comment.