suyiScreen/node_modules/cryptiles
何嘉峣 86fcfee13c 代码提交 2022-12-09 09:24:19 +08:00
..
lib 代码提交 2022-12-09 09:24:19 +08:00
test 代码提交 2022-12-09 09:24:19 +08:00
.npmignore 代码提交 2022-12-09 09:24:19 +08:00
.travis.yml 代码提交 2022-12-09 09:24:19 +08:00
LICENSE 代码提交 2022-12-09 09:24:19 +08:00
README.md 代码提交 2022-12-09 09:24:19 +08:00
package.json 代码提交 2022-12-09 09:24:19 +08:00

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.

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.