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

cryptiles

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptiles - npm Package Compare versions

Comparing version 3.1.4 to 3.2.1

LICENSE.md

4

lib/index.js
'use strict';
// Load modules
const Crypto = require('crypto');

@@ -10,4 +8,2 @@

// Declare internals
const internals = {};

@@ -14,0 +10,0 @@

{
"name": "cryptiles",
"description": "General purpose crypto utilities",
"version": "3.1.4",
"version": "3.2.1",
"repository": "git://github.com/hapijs/cryptiles",
"engines": {
"node": ">=6.0.0"
},
"main": "lib/index.js",

@@ -17,9 +20,9 @@ "keywords": [

"code": "4.x.x",
"lab": "13.x.x"
"lab": "14.x.x"
},
"scripts": {
"test": "lab -a code -t 100 -I SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams -m 30000",
"test-cov-html": "lab -a code -I SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams -m 30000 -r html -o coverage.html"
"test": "lab -a code -t 100 -m 30000 -l",
"test-cov-html": "lab -a code -m 30000 -r html -o coverage.html -l"
},
"license": "BSD-3-Clause"
"license": "SEE LICENSE IN LICENSE.md"
}

@@ -1,19 +0,9 @@

cryptiles
=========
# cryptiles
General purpose crypto utilities
[![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles)
[![Build Status](https://travis-ci.org/hapijs/cryptiles.svg?branch=v3-commercial)](https://travis-ci.org/hapijs/cryptiles)
Lead Maintainer - [C J Silverio](https://github.com/ceejbot)
## License
## 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.
### `fixedTimeComparison(<String> a, <String> b)`
Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns `true` if the strings match, `false` if they differ.
This version of the package requires a commercial license. You may not use, copy, or distribute it without first acquiring a commercial license from Sideway Inc. Using this software without a license is a violation of US and international law. To obtain a license, please contact [sales@sideway.com](mailto:sales@sideway.com). The open source version of this package can be found [here](https://github.com/hapijs/cryptiles).

Sorry, the diff of this file is not supported yet

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