JSPM

criptic-alpha

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 57
  • Score
    100M100P100Q69821F
  • License MIT

To encrypt and decrypt text

Package Exports

  • criptic-alpha

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (criptic-alpha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

criptic-alpha

Node package to encrypt and decrypt a message using secret text. Created as a sample project to register the package in npm registry.

importing package to your node file

const { encrypt, decrypt } = require('criptic-alpha');

Functions in the package

encrypt

  • Accepts a text as input
  • Returns a json which contains to hex values

usage

const hash = encrypt('This is awesome');

decrypt

  • Accepts the hex values json that returned from encrypt function.
  • Returns the original text as output.

usage

const text = decrypt(hash);

encryptMono

  • Accepts a text as input
  • Returns a string which contains hex value separated by '-'

usage

const hash = encryptMono('This is awesome');

decryptMono

  • Accepts the hex values that returned from encryptMono function.
  • Returns the original text as output.

usage

const text = decryptMono(hash);