# @ton/crypto-primitives

> Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of `@ton/crypto`.

Latest version **2.1.0** (published 2024-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ton/crypto-primitives
pnpm add @ton/crypto-primitives
yarn add @ton/crypto-primitives
bun add @ton/crypto-primitives
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2024-07-26 |
| First published | 2023-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 24.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Whales Corp. |
| Maintainers | ikardanov, mrmld, tsivarev, talkol |

## Links

- npm: https://www.npmjs.com/package/@ton/crypto-primitives
- Repository: https://github.com/ton-org/ton-crypto-primitives
- Homepage: https://github.com/ton-org/ton-crypto-primitives#readme
- Issues: https://github.com/ton-org/ton-crypto-primitives/issues
- npm.io page: https://npm.io/package/@ton/crypto-primitives

## Dependencies (1)

- [jssha](https://npm.io/package/jssha.md) 3.2.0

## Recent versions

- 2.1.0 (latest) — 2024-07-26
- 2.0.0 — 2023-07-10

## README

# TON crypto primitives

Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of `@ton/crypto`.

[![Version npm](https://img.shields.io/npm/v/@ton/crypto-primitives.svg?logo=npm)](https://www.npmjs.com/package/@ton/crypto-primitives)

## Features

- 🦺 Crypto primitives: SHA-256, SHA-512, PBKDF2-SHA-256, HMAC-SHA-512
- 🚀 Promise-based API
- 🏎 Built on top of Buffer (polyfill required in browsers)
- 🍰 No reimplemented crypto

## Installation

```bash
yarn add @ton/crypto-primitives buffer
```

#### Browser polyfill

```js
// Add before using library
require("buffer");
```

## React Native
To make it work on react native `expo-crypto` module is required:
`
yarn install expo-crypto
`

# License

MIT

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