PostHog / PostHog/posthog-flutter

Support encryption hook

Open
#136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Configuration enhancement
Dominant language
Dart
Stars
97
Forks
85
Avg merge
1d 8h
Merged PRs (30d)
31

Description

Problem Statement

If events contain sensitive data, and the data is stored in the device, the device is sandboxed. Still, if you want everything to be encrypted, you can encrypt events before flushing them to the disk and decrypting them before sending them to the network.

Solution Brainstorm

https://posthog.com/docs/libraries/android#all-configuration-options

// Hook for encrypt and decrypt events
// Devices are sandbox already
// Defaults to no encryption
encryption = object : PostHogEncryption { ... }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Android configuration documentation, then inspect the SDK's event persistence and network-send entry points; no Flutter files or tests are named in the issue. Define an optional encryption/decryption hook for events, preserving unencrypted behavior by default, and verify that events are encrypted before disk flushing and decrypted before network sending.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.