Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hapi/cryptiles

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/cryptiles - npm Package Compare versions

Comparing version 4.2.1 to 5.0.0

8

lib/index.d.ts
/**
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/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc