UNPKG

cloakx

Version:

Cloakx is a secure, lightweight CLI tool to manage your development secrets locally — no cloud, no hassle. Store, retrieve, and manage secrets across projects with encryption and ease. 🔐 Perfect for solo devs, indie hackers, and teams who value speed, si

15 lines (14 loc) 565 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.decryptCommand = decryptCommand; const commander_1 = require("commander"); const crypto_1 = require("../utils/crypto"); function decryptCommand() { const cmd = new commander_1.Command('decrypt'); cmd.argument('<text>', 'Encrypted text').action((text) => { const password = 'default'; // Replace with session password if needed const decrypted = (0, crypto_1.decrypt)(text, password); console.log('Decrypted:', decrypted); }); return cmd; }