UNPKG

sefin-cipher

Version:

Sefin-Cipher is a JavaScript module that offers text encoding and decoding capabilities through a customized character mapping.

10 lines (7 loc) 403 B
const SefinCipher = require('../index.js'); const originalText = 'AbCdEfGhIjKlMnOpQrStUvWxYz Hello World! AbCdEfGhIjKlMnOpQrStUvWxYz'; console.log(`originalText: ${originalText}\n`); const encodedText = SefinCipher.sef3.encode(originalText); console.log(`sef3.encode() ${encodedText}\n`); const decodedText = SefinCipher.sef3.decode(encodedText); console.log(`sef3.decode() ${decodedText}`);