UNPKG

mira-consciousness

Version:

Memory & Intelligence Retention Archive - Preserving The Spark

40 lines 1.26 kB
export interface EntropyAnalysisResult { suspiciousStrings: SuspiciousString[]; overallRisk: 'critical' | 'high' | 'medium' | 'low'; totalHighEntropyStrings: number; recommendations: string[]; statistics: { totalStringsAnalyzed: number; averageEntropy: number; highEntropyThreshold: number; }; } export interface SuspiciousString { string: string; file: string; line: number; entropy: number; type: 'api_key' | 'password' | 'token' | 'crypto_key' | 'database_url' | 'jwt_secret' | 'unknown'; confidence: number; context: string; riskLevel: 'critical' | 'high' | 'medium' | 'low'; } export declare class EntropyAnalyzer { private projectRoot; private highEntropyThreshold; private minStringLength; constructor(projectRoot: string); analyze(): Promise<EntropyAnalysisResult>; private analyzeFile; private analyzeLine; private extractStringContent; private calculateEntropy; private classifySecret; private calculateConfidence; private calculateRiskLevel; private extractContext; private truncateForSecurity; private calculateOverallRisk; private generateRecommendations; } //# sourceMappingURL=EntropyAnalyzer.d.ts.map