cypher-data
v1.0.5
Published
Generate passwords, Creating/Updating txt file, Encrypt and decrypt strings or files.
Downloads
12
Maintainers
Readme
cypher-data
- Generate passwords
- Creating/Updating txt file
- Encrypt and decrypt strings or files
Installation:
npm i cypher-data
Usage:
const generator = require("cypher-data");
Encrypt and Decrypt:
// Encrypt String
const encryptStr = generator.encryptString("Hello World!");
// Decrypt String
const decryptStr = generator.decryptString(encryptStr);
// Encrypt File
const encryptFile = generator.encryptFile("test.txt");
// Decrypt File
const decryptFile = generator.decryptFile("test.txt");
File:
// Creating file
generator.createFile("test.txt", "text...");
// Updating file
generator.updateFile("test.txt", "text...");
// Append to file
generator.appendToFile("test.txt", "text...");
Generate passwords: (Number instead of X)
// Generator password with numbers only. Example: 833126342
const password = generator.generateNumbersPassword(X);
// Generator password with letters only. Example: jdUsaixD
const password = generator.generateLettersPassword(X);
// Generator password with numbers and letters only. Example: 7dK1suu
const password = generator.generateSimplePassword(X);
// Generator strong password with numbers, letters and special chars only. Example: d~l^6_3cS@K
const password = generator.generateHardcorePassword(X);