Skip to content

Commit

Permalink
Merge pull request #2 from willi123yao/develop
Browse files Browse the repository at this point in the history
Minor changes to readme and code
  • Loading branch information
sayomaki authored Aug 5, 2019
2 parents b862de2 + 0c635b9 commit 07b394b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ console.log(signer.sign('test'));
console.log(signer.unsign('test.c_1GcJ_PKrUqi7gx_0uP1rRAHMk'));
// 'test'
```
#### new RD.Signer(secret[, secret, salt, sep, key_derivation, digest_method, algorithm])
#### new RD.Signer(secret[, salt, sep, key_derivation, digest_method, algorithm])
* `secret` {String} Secret to be used
* `salt` {String} Salt to be used for key generation (Defaults to 'itsDangerous.Signer')
* `sep` {String} Separator to be used for token. Only characters not inside the base64 alphabet are supported.
Expand Down Expand Up @@ -60,7 +60,7 @@ console.log(signer.unsign('test.XTxTRw.dXVJz1MsFiapD0GQ5a16bHjOq2M'), 0, true);
// ['test', 1564234567]
```

#### new RD.TimestampSigner(secret[, secret, salt, sep, key_derivation, digest_method, algorithm])
#### new RD.TimestampSigner(secret[, salt, sep, key_derivation, digest_method, algorithm])
* `secret` {String} Secret to be used
* `salt` {String} Salt to be used for key generation (Defaults to 'itsdangerous.Signer')
* `sep` {String} Separator to be used for token. Only characters not inside the base64 alphabet are supported.
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
const Signer = require('./src/signer');
const TimestampSigner = require('./src/timed');

Expand Down
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
const crypto = require('crypto');

const hashlib = {
Expand Down

0 comments on commit 07b394b

Please sign in to comment.