Socket
Socket
Sign inDemoInstall

cryptiles

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptiles

General purpose crypto utilities


Version published
Weekly downloads
1.1M
increased by2.93%
Maintainers
1
Weekly downloads
 
Created

What is cryptiles?

The cryptiles package is a utility library that provides various cryptographic functions. It is part of the hapi ecosystem and is designed to make certain security-related tasks easier for developers.

What are cryptiles's main functionalities?

Random String Generation

Generates a cryptographically strong random string. The argument specifies the length of the string.

const Cryptiles = require('cryptiles');

const randomString = Cryptiles.randomString(32);

Fixed Time String Comparison

Compares two strings in constant time to prevent timing attacks. It returns true if the strings are equal, false otherwise.

const Cryptiles = require('cryptiles');

const a = 'some string';
const b = 'some string';
const comparisonResult = Cryptiles.fixedTimeComparison(a, b);

Other packages similar to cryptiles

Keywords

FAQs

Package last updated on 03 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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