text-fingerprint

1.0.8 • Public • Published

text-fingerprint

Install

$ npm install --save text-fingerprint

Usage

const { getEncrypt, getDecrypt } = require('text-fingerprint')

Example

const { getEncrypt, getDecrypt } = require('text-fingerprint')
const secret = 'secret'
const text = 'some test words'
const encryptSecret = getEncrypt(secret) //"‌​​​‌‌​​‍‌​​‌‌​‌​‍‌​​‌‌‌​​‍‌​​​‌‌​‌‍‌​​‌‌​‌​‍‌​​​‌​‌‌"
const encryptText = text + encryptSecret //"some test words‌​​​‌‌​​‍‌​​‌‌​‌​‍‌​​‌‌‌​​‍‌​​​‌‌​‌‍‌​​‌‌​‌​‍‌​​​‌​‌‌"
const decryptText = getDecrypt(encryptText) // "some test words secret"

Package Sidebar

Install

npm i text-fingerprint

Weekly Downloads

4

Version

1.0.8

License

ISC

Unpacked Size

2.37 kB

Total Files

3

Last publish

Collaborators

  • junda.mao