Menu

Tree [78fe09] main /
 History

HTTPS access


File Date Author Commit
 asset 2025-01-07 Chukwunonso prosper Chukwunonso prosper [78fe09] update v1.0.4
 cipher 2025-01-06 = = [b47572] better
 core 2025-01-07 = = [4ea074] npm run build v1.0.4
 lib 2025-01-07 = = [4ea074] npm run build v1.0.4
 src 2025-01-07 = = [4ea074] npm run build v1.0.4
 CONTRIBUTING.md 2025-01-07 = = [4ea074] npm run build v1.0.4
 LICENSE 2025-01-06 Chukwunonso prosper Chukwunonso prosper [031d71] Create LICENSE
 cryptia.js 2025-01-07 = = [4ea074] npm run build v1.0.4
 package-lock.json 2025-01-07 Chukwunonso prosper Chukwunonso prosper [3bf539] update
 package.json 2025-01-07 = = [4ea074] npm run build v1.0.4
 readme.md 2024-12-26 davistheweb davistheweb [1ef582] updated readme.md

Read Me

Cryptia

Cryptia is a simple JavaScript library for encrypting and decrypting text using a basic substitution cipher. It provides an easy-to-use interface for securing text data in client-side applications..

Features:

  • Simple Encryption and Decryption: Cryptia allows developers to easily encrypt and decrypt text using a basic substitution cipher.

  • Lightweight: The library is lightweight and easy to integrate into any JavaScript project.

  • No Dependencies: Cryptia does not rely on any external libraries, making it a standalone solution for text encryption.

Installation:

To install Cryptia, clone the repository and navigate to the project directory:

git clone https://github.com/chukwunonsoprosper/cryptia
cd cryptia

or install via npm

npm i cryptia 

Usage:

To use Cryptia, include the cryptia.js file in your project and create an instance of the cryptia object. You can then use the encrypt and decrypt methods to encrypt and decrypt text.

/* 
import the module from cryptia.js
*/
import cryptia from "../cryptia.js";

/*
create an instance of cryptia
*/

const crypt = cryptia();

const encrypted = crypt.encrypt("welcome to cryptia");

console.log('[encrypted text]:', encrypted);
console.log('[decrypted text]:', crypt.decrypt(encrypted))

Project Structure:

  • engine.js: Contains the algorithms used for encryption and decryption.

  • cryptia.js: Minified version of the library.

  • test.js: Example usage of the library.

  • cryptia.raw.js: Source code of the library.

  • package.json: Project metadata

Running a test

npm run test
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.