@hapi/cryptiles
Advanced tools
Comparing version 4.2.1 to 5.0.0
/** | ||
Generate a cryptographically strong pseudo-random data | ||
Generate a cryptographically strong pseudo-random data | ||
@@ -13,3 +13,3 @@ @param size - Size of the string | ||
/** | ||
Return a random string of digits | ||
Return a random string of digits | ||
@@ -25,3 +25,3 @@ @param size - Size of the digits | ||
/** | ||
Generate a buffer of random bits | ||
Generate a buffer of random bits | ||
@@ -37,3 +37,3 @@ @param bits - Number of bits | ||
/** | ||
Generate a buffer of random bits | ||
Generate a buffer of random bits | ||
@@ -40,0 +40,0 @@ @param a - Data to compare |
@@ -1,2 +0,2 @@ | ||
Copyright (c) 2014-2019, Sideway Inc, and project contributors | ||
Copyright (c) 2014-2020, Sideway Inc, and project contributors | ||
All rights reserved. | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@hapi/cryptiles", | ||
"description": "General purpose crypto utilities", | ||
"version": "4.2.1", | ||
"version": "5.0.0", | ||
"repository": "git://github.com/hapijs/cryptiles", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [ | ||
@@ -13,11 +16,8 @@ "cryptography", | ||
], | ||
"files": [ | ||
"lib" | ||
], | ||
"dependencies": { | ||
"@hapi/boom": "7.x.x" | ||
"@hapi/boom": "9.x.x" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "6.x.x", | ||
"@hapi/lab": "20.x.x" | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "22.x.x" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
@@ -1,15 +0,17 @@ | ||
<a href="http://hapijs.com"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
<a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
# @hapi/cryptiles | ||
General purpose crypto utilities | ||
#### General purpose crypto utilities. | ||
[![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles) | ||
**cryptiles** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together. | ||
## Methods | ||
### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support | ||
### `randomString(<Number> size)` | ||
Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string. | ||
## Useful resources | ||
### `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. | ||
- [Documentation and API](https://hapi.dev/family/cryptiles/) | ||
- [Versions status](https://hapi.dev/resources/status/#cryptiles) (builds, dependencies, node versions, licenses, eol) | ||
- [Changelog](https://hapi.dev/family/cryptiles/changelog/) | ||
- [Project policies](https://hapi.dev/policies/) | ||
- [Free and commercial support options](https://hapi.dev/support/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5499
18
5
+ Added@hapi/boom@9.1.4(transitive)
+ Added@hapi/hoek@9.3.0(transitive)
- Removed@hapi/boom@7.4.11(transitive)
- Removed@hapi/hoek@8.5.1(transitive)
Updated@hapi/boom@9.x.x