• Not Exported

    Resolves the encryption key file path

    Returns string

    Absolute path to encryption key file

    function getEncryptionKeyPath(): string {
    const userDataPath = app.getPath("userData");
    const dataPath = path.join(userDataPath, "data");

    // Create directory if needed
    if (!fs.existsSync(dataPath)) {
    fs.mkdirSync(dataPath, { recursive: true });
    }

    return path.join(dataPath, ENCRYPTION_KEY_FILE);
    }