Skip to content

Storage System

Cookie Porter uses a sophisticated storage architecture to ensure data integrity and security.

The extension relies on chrome.storage.local to store all user data. This allows for:

  • Offline Access: You can view and manage your data even without an internet connection.
  • Performance: Instant loading of sessions and notes.
  • Persistence: Data remains available until manually cleared or the extension is uninstalled.

To protect sensitive information (especially cookies), Cookie Porter implements an encryption layer:

  1. Encryption: All data is encrypted using AES (Advanced Encryption Standard) before being written to chrome.storage.
  2. Key Management: Keys are generated and stored securely within the extension’s private context.
  3. Decryption: Data is decrypted only when needed for display or injection into a tab.

The UI uses a subscription-based liveUpdate system:

  • It listens for changes in chrome.storage.
  • When a change is detected (e.g., after a sync or a local edit), the UI components are automatically notified.
  • This ensures that the extension popup and options page always show the most up-to-date information without manual refreshes.