UNPKG

fast-envcrypt

Version:

Secure AES-256 .env file encryption CLI tool with argon2/scrypt support

21 lines 746 B
interface EncryptedData { algorithm: string; keyDerivation: string; salt: string; iv: string; data: string; timestamp: number; authTag?: string; version: string; } export declare function encryptFile(inputPath: string, outputPath: string, password: string | null, algorithm?: "argon2" | "scrypt", force?: boolean): Promise<void>; /** * Encrypt a string directly (utility function) */ export declare function encryptString(content: string, password: string, algorithm?: "argon2" | "scrypt"): Promise<EncryptedData>; /** * Get file encryption info without decrypting */ export declare function getEncryptionInfo(filePath: string): Promise<Partial<EncryptedData>>; export {}; //# sourceMappingURL=encrypt.d.ts.map