crypto-cesar-number-lib
v1.1.0
Published
There are 2 functions that encrypt text to number and in the opposite way
Downloads
7
Maintainers
Readme
Numeric Caesar encrypt (RE-NEWED)
This library enhances text manipulation by implementing Caesar encryption, enabling the transformation of textual information into a purely numeric representation.
How to use
Install
npm install crypto-cesar-number-lib
Encrypt
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
Decrypt
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!'
Licencia
Este proyecto está licenciado bajo Licencia MIT - consulta el archivo LICENSE para obtener más detalles.