keyvault-cli
Version:
Secure API key management CLI tool
36 lines • 984 B
TypeScript
export interface KeyPair {
publicKey: string;
privateKey: string;
address: string;
}
export declare class KeyVaultCrypto {
/**
* Generate deterministic key pair from passphrase
* Same passphrase will always generate same keys
*/
static generateKeyPair(passphrase: string): KeyPair;
/**
* Create a unique address from public key
*/
private static createAddress;
/**
* Encrypt data with public key (for server storage)
*/
static encrypt(data: string, publicKeyHex: string): string;
/**
* Decrypt data with private key (client-side only)
*/
static decrypt(encryptedData: string, privateKeyHex: string): string;
/**
* Validate passphrase strength
*/
static validatePassphrase(passphrase: string): {
valid: boolean;
message?: string;
};
/**
* Mask a key for display
*/
static maskKey(key: string): string;
}
//# sourceMappingURL=crypto.d.ts.map