shielded-high-encryption
Version:
A secure encryption system using AES, named Shielded High Encryption (SHE)
10 lines (9 loc) • 401 B
Markdown
import { Encryption } from 'shielded-high-encryption';
const she = new Encryption();
const key = she.generateKey();
const iv = she.generateIv();
const plaintext = "Hello, World!";
const encryptedText = she.encrypt(plaintext, key, iv);
console.log(`Encrypted Text: ${encryptedText}`);
const decryptedText = she.decrypt(encryptedText, key, iv);
console.log(`Decrypted Text: ${decryptedText}`);