General purpose crypto utilities
JavaScript
Latest commit 8baae7e Nov 28, 2016 @hueniverse hueniverse committed on GitHub Update .travis.yml
Permalink
Failed to load latest commit information.
lib Support node 4. Closes #23 Sep 5, 2016
test Random digits. Closes #22 Sep 5, 2016
.gitignore initial commit Jan 13, 2013
.npmignore Deps. Closes #21 Jul 27, 2016
.travis.yml Update .travis.yml Nov 29, 2016
LICENSE Deps. Closes #21 Jul 27, 2016
README.md Random digits. Closes #22 Sep 5, 2016
package.json Support node 4. Closes #23 Sep 5, 2016

README.md

cryptiles

General purpose crypto utilities

Build Status

Lead Maintainer - C J Silverio

Methods

randomString(<Number> size)

Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string.

randomDigits(<Number> size)

Returns a cryptographically strong pseudo-random data string consisting of only numerical digits (0-9). Takes a size argument for the length of the string.

fixedTimeComparison(<String> a, <String> b)

Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns true if the strings match, false if they differ.