# @creatrix/crypto-rn

> Javacript encrypt and decrypt using crypto js

Latest version **0.1.2** (published 2023-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @creatrix/crypto-rn
pnpm add @creatrix/crypto-rn
yarn add @creatrix/crypto-rn
bun add @creatrix/crypto-rn
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2023-04-26 |
| First published | 2023-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 43.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Creatrix Digital Agency |
| Maintainers | creatrixlb |
| Keywords | react, typescript, encrypt, decrypt, crypto |

## Links

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

## Dependencies (1)

- [crypto-js](https://npm.io/package/crypto-js.md) 3.3.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2023-04-26
- 0.1.1 — 2023-04-26
- 0.1.0 — 2023-02-11

## README

# Crypto
Encrypt and decrypt object or array date with password 

# example
```js
yarn add @creatrix/crypto
```

```js
npm i @creatrix/crypto
```

```js
import {EncryptData,DecryptData} from @creatrix/crypto;

const encrypteddata=EncryptData(
    {id:'1',value:'2'},
    MYPASSWORD,
    base64(true || false),
    isSSR (true || false) // isSSR=false use window.atob(value) || isSSR=true use Buffer.from(value, 'base64').toString('ascii')
) //return encryption data

DecryptData(
    encrypteddata,
    MYPASSWORD,
    base64 (from bae64 true or false),
    isSSR (true | false) // isSSR=false use window.btoa(value) || isSSR=true use Buffer.from(value, 'ascii').toString('base64')
) //{id:'1',value:'2'}
```

```js
import {base64Decode,base64Encode} from @creatrix/crypto;

const var_encode=base64Encode(string,isSSR=(true || false));// isSSR=false use window.btoa(value) || isSSR=true use Buffer.from(value, 'ascii').toString('base64')
const var_decode=base64Decode(string,isSSR=(true || false)); // isSSR=false use window.atob(value) || isSSR=true use Buffer.from(value, 'base64').toString('ascii')
```

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