This library enhances text manipulation by implementing Caesar encryption, enabling the transformation of textual information into a purely numeric representation.
npm install crypto-cesar-number-lib
The encrypt
function takes a string as input and returns an encrypted value. Here's an example of how to use it:
const { encrypt } = require('./crypto-cesar-number-lib');
const originalText = "Hello, world!";
const encryptedText = encrypt(originalText);
console.log("Encrypted text:", encryptedText);
//result: 072101108108111044032119111114108100033
The decrypt
function takes a string as input and returns an encrypted value. Here's an example of how to use it:
const { decrypt } = require('./crypto-cesar-number-lib');
const cryptoChain = "072101108108111044032119111114108100033";
const decryptedText = decrypt(cryptoChain);
console.log("Decrypted text:", decryptedText);
//result: 'Hello, world!'
Este proyecto está licenciado bajo Licencia MIT - consulta el archivo LICENSE para obtener más detalles.