Skip to content

Commit

Permalink
Merge branch 'master' of github.com:visionmedia/node-cookie-signature
Browse files Browse the repository at this point in the history
  • Loading branch information
natevw committed Jun 19, 2014
2 parents 11ab5c2 + 1d1b25b commit 540caea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 11 additions & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
1.0.3 / 2014-01-28
==================

* fix for timing attacks

1.0.2 / 2014-01-28
==================

* fix missing repository warning
* fix typo in test

1.0.1 / 2013-04-15
1.0.1 / 2013-04-15
==================

* Revert "Changed underlying HMAC algo. to sha512."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cookie-signature",
"version": "1.0.1",
"version": "1.0.3",
"description": "Sign and unsign cookies",
"keywords": ["cookie", "sign", "unsign"],
"author": "TJ Holowaychuk <tj@learnboost.com>",
Expand Down
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Module dependencies.
*/
Expand All @@ -11,7 +10,7 @@ describe('.sign(val, secret)', function(){
val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');

var val = cookie.sign('hello', 'luna');
val.should.not.equal('hhello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');
val.should.not.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');
})
})

Expand Down

0 comments on commit 540caea

Please sign in to comment.