Skip to content

Commit

Permalink
nodify
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 23, 2012
1 parent a8b294b commit 7a5acf1
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

node_modules
npm-debug.log
1 change: 0 additions & 1 deletion COPYING

This file was deleted.

3 changes: 2 additions & 1 deletion AUTHORS → LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SipHash was designed by Jean-Philippe Aumasson and and Daniel J. Bernstein.
Public domain.

SipHash was designed by Jean-Philippe Aumasson and and Daniel J. Bernstein.
Javascript implementation by Frank Denis.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ A pure Javascript implementation of
Usage:
------

SipHash.hash([k0, k1, k2, k3], <message>);
SipHash.hash_hex([k0, k1, k2, k3], <message>);
SipHash.string16_to_key(<16 characters string>);
```javascript
var siphash = require("siphash");
var key = siphash.string16_to_key("0123456789ABCDEF")
var message = "Short test message";
var hash = siphash.hash_hex(key, message);
```
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./lib/siphash');
2 changes: 2 additions & 0 deletions siphash.js → lib/siphash.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,5 @@ var SipHash = (function() {
hash_hex: hash_hex
};
})();

var module = module || { }, exports = module.exports = SipHash;
File renamed without changes.
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Frank Denis <j at pureftpd dot org>",
"bugs": { "url": "https://github.com/jedisct1/siphash-js/issues" },
"description": "SipHash-2-4 fast short-input pseudo-random function",
"homepage": "https://github.com/jedisct1/siphash-js",
"keywords": [ "prf", "hash", "crypto" ],
"license": "Public Domain",
"main": "index.js",
"name": "siphash",
"repository": {
"type": "git",
"url": "https://github.com/jedisct1/siphash-js.git"
},
"version": "1.0.0"
}

0 comments on commit 7a5acf1

Please sign in to comment.