- Updated python_coding_microproject.csv to use NVIDIA NIM Kimi K2 - Updated kali_linux_shell_simulator.csv to use NVIDIA NIM Kimi K2 - Made more general-purpose (flexible targets, expanded tools) - Added nemotron-mini-agent.csv for fast local inference via Ollama - Added nemotron-agent.csv for advanced reasoning via Ollama - Added wiki page: Projects for NVIDIA NIMs and Nemotron
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
/**
|
|
* Generate a random encryption key
|
|
*/
|
|
export declare function generateEncryptionKey(): string;
|
|
/**
|
|
* Encrypt data using AES-256-GCM
|
|
*/
|
|
export declare function encrypt(data: string, keyHex: string): {
|
|
encrypted: string;
|
|
iv: string;
|
|
tag: string;
|
|
};
|
|
/**
|
|
* Decrypt data using AES-256-GCM
|
|
*/
|
|
export declare function decrypt(encryptedData: string, keyHex: string, ivHex: string, tagHex: string): string;
|
|
/**
|
|
* Hash data using SHA-256
|
|
*/
|
|
export declare function sha256Hash(data: string): string;
|
|
/**
|
|
* Generate HMAC signature
|
|
*/
|
|
export declare function generateHMAC(data: string, secret: string): string;
|
|
/**
|
|
* Verify HMAC signature
|
|
*/
|
|
export declare function verifyHMAC(data: string, signature: string, secret: string): boolean;
|
|
/**
|
|
* Generate tenant-specific encryption key from master key and tenant ID
|
|
*/
|
|
export declare function deriveTenantKey(masterKey: string, tenantId: string): string;
|
|
/**
|
|
* Encrypt JSON data for database storage
|
|
*/
|
|
export declare function encryptForDatabase(data: any, encryptionKey: string): string;
|
|
/**
|
|
* Decrypt JSON data from database storage
|
|
*/
|
|
export declare function decryptFromDatabase(encryptedData: string, encryptionKey: string): any;
|
|
/**
|
|
* Generate a secure random password
|
|
*/
|
|
export declare function generateSecurePassword(length?: number): string;
|