Skip to content

sgonzaec/crypto-cesar-number-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Note

This library is made purely for basic uses, as it employs weak encryption solely to transform information for very specific needs.

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.

About

There are 2 functions that encrypt text to number and in the opposite way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published