npm
Version:
a package manager for JavaScript
15 lines (9 loc) • 537 B
Markdown
cryptiles
=========
General purpose crypto utilities
[](http://travis-ci.org/hapijs/cryptiles)
Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string.
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.