npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ces-system

v1.3.3

Published

Customize encryption system for all application that add high end security od data trabsction.

Downloads

27

Readme

ces-system

Author: Biswanath Das

Instalation

yarn add ces-system

How to use

import { Encryption, Decryptions } from "ces-system";

For encryption

const text = "I love CES";
Encryption(text).then((encryptedText) => console.log(encryptedText));

Note: Output would be ZEh5c3BjcTJlMzEyNDNuMXFzc3Bjb0BWcE5nZzNkMw== .

For decryption

const encryptedText = "ZEh5c3BjcTJlMzEyNDNuMXFzc3Bjb0BWcE5nZzNkMw=="
Decryptions(encryptedText).then((text) => console.log(text));

Note: Output would be I love CES

Sample code

import React, { useState } from "react";
import { Encryption, Decryptions } from "ces-system";

export default function EncryptionView() {
  const [text, setText] = useState(null);
  const [encryptedTextInput, setEncryptedTextInput] = useState(null);
  const [encriptedtext, setEncriptedtext] = useState(null);
  const [decryptedText, setDecryptedText] = useState(null);

  const postHandlerForEncryption = () => {
    Encryption(text).then((encryptedText) => setEncriptedtext(encryptedText));
  };

  const postHandlerForDecryption = () => {
    const decryptTextData = Decryptions(encryptedTextInput);
    setDecryptedText(decryptTextData);
  };

  return (
    <>
      <h1>For Encryption</h1>
      <h5>Encrypted text: {encriptedtext}</h5>
      <form>
        <input
          type="text"
          onChange={(event) => setText(event.target.value)}
          placeholder="Enter your text here"
        />
        <button type="button" onClick={(event) => postHandlerForEncryption()}>
          Encrypt
        </button>
      </form>
      <br />
      <h1>For Dicryption</h1>
      <h5>Decrypted text: {decryptedText}</h5>
      <form>
        <input
          type="text"
          onChange={(event) => setEncryptedTextInput(event.target.value)}
          placeholder="Enter your text here"
        />
        <button type="button" onClick={(event) => postHandlerForDecryption()}>
          Decrypt
        </button>
      </form>
    </>
  );
}

Advance module

Passing customize logic as key for encryption and decryption

For encryption

const text = "I love CES";
Encryption(text, key).then((encryptedText) => console.log(encryptedText));

Note: Output would be ZEh5c3BjcTJlMzEyNDNuMXFzc3Bjb0BWcE5nZzNkMw== .

For decryption

const encryptedText = "ZEh5c3BjcTJlMzEyNDNuMXFzc3Bjb0BWcE5nZzNkMw=="
Decryptions(encryptedText, key).then((text) => console.log(text));

Note: Output would be I love CES

Format of key

key is an object you can change the each item of the key in order to customize your encryption rule.

Ipmortant : All value must be unique and same length , specify the "length" value For example: if you set V1: "rtyu" then the value of length: "4"

const key = {
  v1: "fr6",
  v2: "fg6",
  v3: "mlp",
  v4: "7ii",
  v5: "klo",
  v6: "6y8",
  v7: "caq",
  v8: "432",
  v9: "glp",
  v0: "a23",
  A: "sZF",
  B: "X@n",
  C: "o@V",
  D: "QlX",
  E: "pNg",
  F: "Hrh",
  G: "@gg",
  H: "@pk",
  I: "dHy",
  J: "fgh",
  K: "45g",
  L: "4@k",
  M: "dke",
  N: "Ygg",
  O: "1d4",
  P: "4th",
  Q: "4r6",
  R: "fgy",
  S: "g3d",
  T: "q24",
  U: "3rl",
  V: "ap0",
  W: "a40",
  X: "fep",
  Y: "dpp",
  Z: "eNd",
  sa: "dfg",
  sb: "vcz",
  sc: "qqq",
  sd: "uuu",
  se: "1qs",
  sf: "jnu",
  sg: "670",
  sh: "wow",
  si: "hbb",
  sj: "vZC",
  sk: "x23",
  sl: "q2e",
  sm: "11p",
  sn: "4rr",
  so: "312",
  sp: "234",
  sq: "fca",
  sr: "412",
  ss: "242",
  st: "xc4",
  su: "452",
  sv: "43n",
  sw: "Vf2",
  sx: "r2r",
  sy: "vew",
  sz: "324",
  tilt: "aLs",
  vnot: "etp",
  adarate: "vAt",
  doller: "Do4",
  up: "vrt",
  vand: "An5",
  vstar: "Sly",
  backetopen1st: "bbC",
  backetclose1st: "BD1",
  minius: "my1",
  plus: "cp1",
  equals: "eq1",
  slash: "vs1",
  dot: "js1",
  comma: "vc1",
  question: "a01",
  colone: "VC1",
  semicolone: "L41",
  singleinvarted: "L42",
  doubleinvarted: "q0k",
  lessthan: "q0k",
  graterthan: "q0k",
  us: "a8D",
  hash: "y7u",
  percent: "rp0",
  space: "spc",
  length: "3",
};