@xec-sh/core
Version:
Universal shell execution engine
29 lines (28 loc) • 1.04 kB
TypeScript
import type { Disposable } from '../types/disposable.js';
export declare class SecurePasswordHandler implements Disposable {
private tempFiles;
private encryptedPasswords;
private encryptionKey;
private isDisposed;
constructor();
private encryptPassword;
private decryptPassword;
storePassword(id: string, password: string): void;
retrievePassword(id: string): string | null;
createAskPassScript(password: string): Promise<string>;
cleanup(): Promise<void>;
private securelyDisposePasswords;
dispose(): Promise<void>;
createSecureEnv(askpassPath: string, baseEnv?: Record<string, string>): Record<string, string>;
static maskPassword(command: string, password?: string): string;
static checkSecureMethodsAvailable(): Promise<{
askpass: boolean;
stdin: boolean;
keyring: boolean;
}>;
static generatePassword(length?: number): string;
static validatePassword(password: string): {
isValid: boolean;
issues: string[];
};
}