tamimhardcode
v1.5.0
Published
Secure encryption/decryption package with license protection and machine binding
Maintainers
Readme
TamimHardcode 🔐
A secure encryption/decryption Node.js package with built-in license protection and machine binding.
Features
- 🔒 Military-grade encryption using AES-256-GCM
- 🏷️ License protection - requires proper npm installation
- 💻 Machine binding - encrypted data is tied to the machine
- 📁 File encryption/decryption support
- 🛡️ Anti-tampering protection
- 🔑 Custom password support
Installation
npm install tamimhardcodeUsage
Basic Encryption/Decryption
const { encrypt, decrypt } = require('tamimhardcode');
// Encrypt text
const encrypted = encrypt("Your secret message");
console.log(encrypted); // Base64 encoded encrypted data
// Decrypt text
const decrypted = decrypt(encrypted);
console.log(decrypted); // "Your secret message"Using Custom Password
const { encrypt, decrypt } = require('tamimhardcode');
const password = "mySecretPassword123!";
const encrypted = encrypt("Secret data", password);
const decrypted = decrypt(encrypted, password);Class-based Usage
const { TamimHardcode } = require('tamimhardcode');
const tamim = new TamimHardcode();
const encrypted = tamim.encrypt("My secret");
const decrypted = tamim.decrypt(encrypted);File Encryption/Decryption
const { encryptFile, decryptFile } = require('tamimhardcode');
// Encrypt a file
encryptFile('secret.txt', 'secret.txt.tamim');
// Decrypt a file
decryptFile('secret.txt.tamim', 'decrypted.txt');License Verification
const { isLicensed, getInfo } = require('tamimhardcode');
console.log('Licensed:', isLicensed());
console.log('Package Info:', getInfo());Security Features
- Installation Verification: The package checks if it's properly installed via npm
- Machine Binding: Encrypted data can only be decrypted on the same machine
- License Protection: Built-in license verification system
- Secure Key Derivation: Uses PBKDF2 with 100,000 iterations
- Authentication: Uses GCM mode for authenticated encryption
Error Handling
The package throws descriptive errors for:
- Invalid installation
- License verification failure
- Machine verification failure
- Decryption errors
- File operation errors
Testing
npm testDemo
npm run demoLicense
This package is proprietary software. Unauthorized use, distribution, or modification is prohibited.
Author
Created by Tamim
⚠️ Important: This package requires proper installation via npm to function. Direct file copying will not work due to built-in protection mechanisms.
