Loading repository data…
Loading repository data…
chukwunonsoprosper / repository
CryptiaJS is a lightweight and secure JavaScript library for encrypting and decrypting text using a substitution cipher. Whether you're safeguarding sensitive data in web applications or adding encryption to your server-side projects, CryptiaJS is designed to be fast, reliable, and easy to use. ⚡
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
CryptiaJS is a lightweight and secure JavaScript library for encrypting and decrypting text using a substitution cipher. Whether you're safeguarding sensitive data in web applications or adding encryption to your server-side projects, CryptiaJS is designed to be fast, reliable, and easy to use. ⚡
Your data stays protected—as long as you keep your encryption key private.
Install CryptiaJS via npm:
npm i cryptia
Or clone the GitHub repository:
git clone https://github.com/chukwunonsoprosper/cryptia
cd cryptia
To test the library, run:
npm run test
To spin up a customizable workspace, run:
npm run dev
You can also link workspace.js to your project directory to integrate CryptiaJS easily.
/**
* Import Cryptia and required dependencies.
*/
import Cryptia from '../cryptia.js'
// Initialize Cryptia with custom settings.
const cryptia = Cryptia({
obfuscationLevel: 10,
logging: false,
preserveWhitespace: true
});
/**
* Encrypt and decrypt text with a secure key.
*/
const plainText = 'This is a secret message.🤣😂';
const encryptionKey = 'MySecureKey1';
const encryptedResult = cryptia.encrypt(plainText, encryptionKey)
console.log('Encrypted Text:', encryptedResult.data);
const decryptedResult = cryptia.decrypt(encryptedResult, encryptionKey)
console.log('Decrypted Text:', decryptedResult.data);
This project is licensed under the MIT License.
Builder: Chukwunonso Prosper & other contributors.
💙 Don't forget to star the project on GitHub! 🔗 GitHub Repository
📖 Read the full guide: npmjs.com/package/cryptia
📢 Follow for updates & discussions: