# ton-crypto-primitives

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

Latest version **2.0.0** (published 2022-01-20) · 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 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-01-20 |
| First published | 2022-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Steve Korshakov |
| Maintainers | steve.kite |

## Links

- npm: https://www.npmjs.com/package/ton-crypto-primitives
- Repository: https://github.com/tonwhales/ton-crypto-primitives
- 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.0.0 (latest) — 2022-01-20
- 1.0.1 — 2022-01-13
- 1.0.0 — 2022-01-13

## README

# TON crypto primitives

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

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

## Features

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

## Install

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

#### Browser polifil

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

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

# 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._
