0.1.5 • Published 2 years ago

encrypto-decryptojs v0.1.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

React Encrypt Decrypt Data

Installation

npm i encrypto-decryptojs --save

Usage

To encrypt

import React from "react";
import { encrypto } from "encrypto-decryptojs";

export default function App() {
  const encrypted = encrypto(data);
  return <div>{encrypted}</div>;
}

To decrypt use encrypted data to decrypt it

import React from "react";
import { encrypto, decrypto } from "encrypto-decryptojs";

export default function App() {
  const encrypted = encrypto(data);
  const decrypted = decrypto(encrypted);

  return <div>{decrypted}</div>;
}