1.0.0 • Published 7 years ago
wink-encrypt v1.0.0
:wink: Encrypt
Encrypt & decrypt text from punctuation, funky, doesn't it?
Why ?
Sometimes, people want to talk only with punctuation :wink: So, I created this small tool to decrypt text from punctuation, and vice versa.
Use with node.js
First thing, setup
npm install wink-encrypt # or yarn add wink-encrypt
How to use ?
const winkEncrypt = require('wink-encrypt') console.log(`Hello Mar... 😉 == ${winkEncrypt.encodeString('Hello Mar... 😉')}`) console.log(`:--!!.;!.;?!!!.;?!!!.;-!."?!!.:"!!.:"--!!.;-!!!!."--!."--!."--!."?!!.)))))(;;;:?!!.)))))(',;;;"-?! == ${winkEncrypt.decodeString(':--!!.;!.;?!!!.;?!!!.;-!."?!!.:"!!.:"--!!.;-!!!!."--!."--!."--!."?!!.)))))(;;;:?!!.)))))(\',;;;"-?!')}`)
Use into a browser
Get browser compliant file
dist/wink-encrypt.min.js
Put it into your HTML file
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="wink-encrypt.min.js"></script> <script type="text/javascript"> console.log(`Hello Mar... 😉 == ${winkEncrypt.encodeString('Hello Mar... 😉')}`) console.log(`:--!!.;!.;?!!!.;?!!!.;-!."?!!.:"!!.:"--!!.;-!!!!."--!."--!."--!."?!!.)))))(;;;:?!!.)))))(',;;;"-?! == ${winkEncrypt.decodeString(':--!!.;!.;?!!!.;?!!!.;-!."?!!.:"!!.:"--!!.;-!!!!."--!."--!."--!."?!!.)))))(;;;:?!!.)))))(\',;;;"-?!')}`) </script> </head> <body>Hello</body> </html>