UNPKG

tryaii-mcp-server

Version:

TryAII MCP Server - 15+ AI models with comparison, cost tracking, and collective intelligence

29 lines 791 B
export interface EncryptedData { encryptedText: string; iv: string; tag: string; } /** * Encrypt sensitive data (like API keys) */ export declare function encrypt(text: string): EncryptedData; /** * Decrypt sensitive data (like API keys) */ export declare function decrypt(encryptedData: EncryptedData): string; /** * Hash API key for identification (one-way) */ export declare function hashApiKey(apiKey: string): string; /** * Mask API key for logging (show only first/last few characters) */ export declare function maskApiKey(apiKey: string): string; /** * Extract user identifier from request headers or params */ export declare function extractUserFromApiKey(apiKey: string): { userId: string; provider: string; }; //# sourceMappingURL=encryption.d.ts.map