@types/cryptiles

  • Version 3.1.2
  • Published
  • 3.82 kB
  • No dependencies
  • MIT license

Install

npm i @types/cryptiles
yarn add @types/cryptiles
pnpm add @types/cryptiles

Overview

TypeScript definitions for cryptiles

Index

Functions

function fixedTimeComparison

fixedTimeComparison: (a: string, b: string) => boolean;
  • 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.

function randomDigits

randomDigits: (size: number) => string;
  • 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.

function randomString

randomString: (size: number) => string;
  • Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string.

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/cryptiles.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/cryptiles)
  • HTML
    <a href="https://www.jsdocs.io/package/@types/cryptiles"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>