# Environment variables for API keys
import os
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

API_KEYS = {
    "haveibeenpwned": os.getenv("HIBP_API_KEY", ""),
    "hunter": os.getenv("HUNTER_API_KEY", ""),
    "abuseipdb": os.getenv("ABUSEIPDB_API_KEY", ""),
    "shodan": os.getenv("SHODAN_API_KEY", "")
}

def get_api_keys():
    """Get API keys from environment variables"""
    return API_KEYS

def validate_api_keys():
    """Validate that API keys are configured"""
    configured = {}
    for service, key in API_KEYS.items():
        if key and key != "" and not key.startswith("YOUR_"):
            configured[service] = True
        else:
            configured[service] = False
    return configured
