crypto-cesar-number-lib

1.1.0 • Public • Published

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.

Cesar

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.

Package Sidebar

Install

npm i crypto-cesar-number-lib

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

6.13 kB

Total Files

9

Last publish

Collaborators

  • sgonzaec