51 Commits

Author SHA1 Message Date
Guy Halford-Thompson
ba0a67b926 Merge pull request #22 from sdenel/patch-1
Update Readme.md
2015-03-11 14:54:22 -07:00
Simon DENEL
dff3563b56 Update Readme.md 2015-03-11 19:51:35 +01:00
Guy Halford-Thompson
fec9bf31d3 Merge pull request #20 from one-time-password/master
add thirty-two to dev-dependencies
2014-11-06 09:39:58 -08:00
alfred sang
c5b8e541bd add thirty-two to dev-dependencies 2014-11-06 19:37:19 +08:00
Guy Halford-Thompson
e34d1b937b Bump release to 2.0.3 2014-10-13 17:14:56 -07:00
Guy Halford-Thompson
266e0f3ece Merge pull request #17 from thedufer/master
Make `opt` optional, as the docs describe
2014-10-13 17:13:12 -07:00
Aaron Dufour
1556427b39 tests for not passing opt
we just want those to not throw an error,
which is why there's no assertions
2014-09-12 16:11:30 -04:00
Aaron Dufour
a653c7e624 default opt to {} where appropriate 2014-09-12 16:08:20 -04:00
Guy Halford-Thompson
66f1f0fe3f Merge pull request #15 from martinvl/master
Fixed issue with hash algorithm using Browserify
2014-09-03 10:06:36 -07:00
Martin Vonheim Larsen
22e48620d1 Fixed issue with hash algorithm using Browserify
Fixes #14.
2014-08-23 12:32:08 +02:00
Guy Halford-Thompson
1aed728dd4 Merge pull request #13 from aw/google-authenticator
Replace the equal signs in base32 string
2014-08-12 09:49:09 -07:00
Alex Williams
1662edf203 Replace the equal signs in base32 string 2014-08-11 10:23:28 +00:00
Guy Halford-Thompson
3c9391bc36 Merge pull request #12 from fuzzie360/master
Make verify() follow the specs and actually return null on failure
2014-06-12 16:03:26 -07:00
Fazli Sapuan
0154ab839b Make verify() follow the specs and return null 2014-06-09 13:58:19 +08:00
Guy Halford-Thompson
d10c328292 Merge pull request #9 from freewil/throw-time-overwrite
throw if trying to overwrite time in non-test env
2014-04-09 09:08:57 -07:00
Guy Halford-Thompson
37d2ea17f8 Pushing version 2.0.2 2014-04-08 22:43:03 -07:00
Guy Halford-Thompson
b3431b264d Merge pull request #8 from freewil/modernize
Modernize
2.0.2
2014-04-08 22:37:32 -07:00
freewil
f53ba3822c throw if trying to overwrite time in non-test env 2014-04-07 04:15:49 -07:00
freewil
3873e43f39 replace expresso with mocha 2014-04-07 03:22:46 -07:00
freewil
caf0093c2c remove node v0.4.x support 2014-04-07 03:22:46 -07:00
Guy Halford-Thompson
34cc6a605a Merge pull request #6 from jpf/master
I fixed up the documentation a little bit.
2013-03-27 17:33:21 -07:00
Joël Franusic
e977ceaa68 minor documentation changes 2013-03-27 17:23:07 -07:00
Guy Halford-Thompson
a13cb6b281 Version bump 2.0.1 2012-06-13 17:39:01 +00:00
Guy Halford-Thompson
13865d89d5 Fixed issue causing negative counter values to be rejected 2012-06-13 17:38:47 +00:00
Guy Halford-Thompson
b889c99a1e Updated example to work with new API. Fixes issue #4 2012-06-13 17:38:17 +00:00
Guy Halford-Thompson
ff3803e2f4 Added new example 2012-06-13 17:37:46 +00:00
Guy Halford-Thompson
c648b800a4 Version bump 2.0.0 2012-06-07 01:43:41 -07:00
Guy Halford-Thompson
a0199e3b7e Merge branch 'master' of github.com:guyht/notp 2012-06-04 05:33:20 -07:00
Guy Halford-Thompson
6507dfe8d1 Added travis config file 2012-06-04 05:31:29 -07:00
Guy Halford-Thompson
194ba6cae5 Added travis-ci icon 2012-06-04 05:29:43 -07:00
Guy Halford-Thompson
209e7020e8 Merge pull request #2 from shtylman/master
complete rework of api and code cleanup
2012-06-04 05:19:09 -07:00
Roman Shtylman
6ad05c5a7c README markdown formatting 2012-06-03 18:29:06 -04:00
Roman Shtylman
10381a3a88 update README formatting for API 2012-06-03 18:27:32 -04:00
Roman Shtylman
022ef8d128 add migrating from 1.x to 2.x to readme 2012-06-03 18:15:56 -04:00
Roman Shtylman
6c4ac1e94d cleanup README
- move license section to separate file
- remove examples, api documentation is enough for now
2012-06-03 18:01:30 -04:00
Roman Shtylman
ad29941dab add google auth example/details to readme
Basic example on using `thirty-two` module to do base32 encoding and
creating a barcode URI
2012-06-03 15:57:43 -04:00
Roman Shtylman
6324431069 update .gitignore
- add node_modules
- remove other cruft
2012-06-01 16:00:40 -04:00
Roman Shtylman
cfa2ecddb1 rework api
make two subobjects `hotp` and `totp` with gen and verify methods
2012-06-01 00:33:55 -04:00
Roman Shtylman
e633d857fd update readme with new argument names 2012-06-01 00:08:40 -04:00
Roman Shtylman
940938dd81 package.json typo 2012-06-01 00:07:29 -04:00
Roman Shtylman
103874b752 remove thirty-two dependency
The code does not use it, if a person wants to base32 encode, they can
just install the package themselves and use it.
2012-06-01 00:06:43 -04:00
Roman Shtylman
9344bad009 rename arguments
There is no need for single letter arguments, they just make reading the
code more confusing. The spec uses them to avoid typing longer words all
over the place but we don't have as much code to produce.

- P -> token
- W -> window
- K -> key
- C -> counter
- T -> time
2012-06-01 00:04:21 -04:00
Roman Shtylman
3fd84e5a7e rename lib/nopt.js -> index.js
simple project don't need lib folder
2012-05-31 23:51:19 -04:00
Roman Shtylman
f78995f498 update README
api changes
2012-05-31 23:48:03 -04:00
Roman Shtylman
cf96266a20 code cleanup
- remove callbacks (functions are sync)
- update tests for removed callbacks
- minimize some code duplication
2012-05-31 23:40:34 -04:00
Roman Shtylman
4475c95ecb remove err argument from functions
It was never used and is not really the node.js way to do things.
2012-05-31 19:03:58 -04:00
Roman Shtylman
190d29070c remove Nopt object and just export directly 2012-05-31 18:57:41 -04:00
Roman Shtylman
5221c05ac9 support node >= 0.4.10 2012-05-31 18:55:14 -04:00
Roman Shtylman
9f68f20826 use package thirty-two for base32 encoding/decoding 2012-05-31 18:54:35 -04:00
Guy Halford-Thompson
85b2e89fe7 Added .gitignore 2011-10-02 18:14:37 -07:00