包详细信息

cryptiles

hapijs5.2mBSD-3-Clause不推荐使用4.1.3

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

自述文件

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.