Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cryptiles

hapijs3.4mBSD-3-Clausedeprecated4.1.3TypeScript support: definitely-typed

This module has moved and is now available at @hapi/cryptiles. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

General purpose crypto utilities

cryptography, security, utilites

readme

cryptiles

General purpose crypto utilities

Build Status

Lead Maintainer - Eran Hammer

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.