# cryptiles

> General purpose crypto utilities

Latest version **4.1.3** (published 2018-11-03) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cryptiles
pnpm add cryptiles
yarn add cryptiles
bun add cryptiles
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.1.3 |
| Published | 2018-11-03 |
| First published | 2013-01-13 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/cryptiles) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 183 |
| Maintainers | hueniverse, marsup, nlf, wyatt |
| Keywords | cryptography, security, utilites |

## Links

- npm: https://www.npmjs.com/package/cryptiles
- Repository: https://github.com/hapijs/cryptiles
- Homepage: https://github.com/hapijs/cryptiles#readme
- Issues: https://github.com/hapijs/cryptiles/issues
- npm.io page: https://npm.io/package/cryptiles

## Dependencies (1)

- [boom](https://npm.io/package/boom.md) 7.x.x

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 4.1.3 (latest) — 2018-11-03
- 3.2.1 (v3-legacy) — 2024-01-03
- 3.1.4 (lts) — 2018-11-05
- 3.1.3 — 2018-11-02
- 4.1.2 — 2018-06-24
- 4.1.1 — 2017-11-10
- 4.1.0 — 2017-11-03
- 4.0.2 — 2017-11-03
- 4.0.1 — 2017-09-26
- 4.0.0 — 2017-09-24
- 3.1.2 — 2017-05-28
- 3.1.1 — 2016-09-05
- 3.1.0 — 2016-09-05
- 3.0.2 — 2016-07-27
- 3.0.1 — 2016-05-19
- … 18 more at https://npm.io/package/cryptiles/versions

## README

cryptiles
=========

General purpose crypto utilities

[![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles)

Lead Maintainer - [Eran Hammer](https://github.com/hueniverse)

## 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.

---
_Source: https://npm.io/package/cryptiles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
