# @turajs/crypto

> Cryptographic functions for building Tura Network apps.

Latest version **1.0.12** (published 2024-04-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @turajs/crypto
pnpm add @turajs/crypto
yarn add @turajs/crypto
bun add @turajs/crypto
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2024-04-24 |
| First published | 2024-04-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 7 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pride4215 |
| Keywords | tura, tura-network, blockchain, smartcontracts, crypto, cryptography, turajs |

## Links

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

## Dependencies (7)

- [pako](https://npm.io/package/pako.md) ^1.0.10
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.9-1
- [seedrandom](https://npm.io/package/seedrandom.md) ^3.0.5
- [@types/node](https://npm.io/package/@types/node.md) ^12.0.0
- [@types/pako](https://npm.io/package/@types/pako.md) ^1.0.1
- [@types/crypto-js](https://npm.io/package/@types/crypto-js.md) ^3.1.43
- [@types/seedrandom](https://npm.io/package/@types/seedrandom.md) ^2.4.27

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

- 1.0.12 (latest) — 2024-04-24
- 1.0.11 — 2024-04-24
- 1.0.9 — 2024-04-22
- 1.0.8 — 2024-04-22
- 1.0.7 — 2024-04-22
- 1.0.6 — 2024-04-22
- 1.0.5 — 2024-04-22
- 1.0.4 — 2024-04-21

## README

# @turajs/crypto

Cryptographic functions for building Signum apps.

[![Featured on Openbase](https://badges.openbase.com/js/featured/@turajs/crypto.svg?token=ShJWpDur1ZmdRPNkvCiTvHa1r/JOG+8TkABhdRCIZbI=)](https://openbase.com/js/@turajs/crypto?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge)

## Installation

SignumJS can be used with NodeJS or Web. Two formats are available

### Using with NodeJS and/or modern web frameworks

Install using [npm](https://www.npmjs.org/):

```
npm install @turajs/crypto
```

or using [yarn](https://yarnpkg.com/):

``` yarn
yarn add @turajs/crypto
```

#### Example

```js
import {encryptAES, decryptAES, hashSHA256} from '@turajs/crypto'

const encrypted = encryptAES('test', 'key')
const decrypted = decryptAES(encrypted, 'key')
console.log(hashSHA256('test'))
console.log(decrypted)
```


### Using in classic `<script>`

Each package is available as bundled standalone library using UMD.
This way _signumJS_ can be used also within `<script>`-Tags.
This might be useful for Wordpress and/or other PHP applications.

Just import the package using the HTML `<script>` tag.

`<script src='https://cdn.jsdelivr.net/npm/@turajs/crypto/dist/signumjs.crypto.min.js'></script>`


#### Example

```js
const encrypted = b$crypto.encryptAES("test", "key");
const decrypted = b$crypto.decryptAES(encrypted, "key");
console.log(b$crypto.hashSHA256("test"));
console.log(decrypted);
```

See more here:
[@turajs/crypto Online Documentation](https://signum-network.github.io/signumjs/module/crypto)

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