UNPKG

cryptiles

Version:

General purpose crypto utilities

17 lines (10 loc) 595 B
cryptiles ========= General purpose crypto utilities [![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles) Lead Maintainer - [Eran Hammer](https://github.com/hueniverse) ## 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.