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) 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encryptCommand = encryptCommand; const commander_1 = require("commander"); const crypto_1 = require("../utils/crypto"); function encryptCommand() { const cmd = new commander_1.Command('encrypt'); cmd.argument('<text>', 'Text to encrypt').action((text) => { const password = 'default'; // Replace with session password if needed const encrypted = (0, crypto_1.encrypt)(text, password); console.log('Encrypted:', encrypted); }); return cmd; }