Our Period Tracker saves cycle history on your device so it can restore the calendar after a reload. It does not use a server account or synchronize cycle records to our servers. This walkthrough describes the actual implementation rather than treating local storage as an encryption feature.
What the current tool saves
The application stores history under the key periodHistory in the tracker origin's localStorage. Records are serialized as JSON. When the tracker opens, it reads that key, parses the JSON, and converts stored start-date strings back into JavaScript dates.
// Storage operations used by the current tracker.
// This example omits the app's date-conversion and error-handling code.
const history = JSON.parse(localStorage.getItem('periodHistory')) || [];
localStorage.setItem('periodHistory', JSON.stringify(history));
This is plain browser storage. The current tracker does not encrypt these records with AES-GCM, derive a key from a password, or store them in IndexedDB. Local processing avoids sending cycle records to a backend; it does not make them unreadable to someone with access to the browser profile.
Check it yourself with a fictional record
- Use a separate test browser profile and open Period Tracker. Enter fictional dates rather than personal health information.
- Open developer tools. In Chrome, go to Application → Storage → Local Storage and select
https://periodtracker.getinfotoyou.com. - Find
periodHistoryand inspect its value. You should see JSON describing the test entries. - Reload the page. The history is restored from the same browser storage. Opening a different browser or device will not restore those local entries.
- Use the Network-panel method in our browser privacy guide to distinguish cycle-record uploads from unrelated page requests.
The tracker page also loads Google Analytics. Local cycle storage and analytics are separate behaviors; the presence of local storage does not imply the page makes no network requests. The tool's Privacy Policy describes these separately.
Delete history and understand what gets lost
To remove all saved cycle history for that browser profile, remove the periodHistory entry in developer tools and reload the tracker. Alternatively, use your browser's site-data settings to clear data for periodtracker.getinfotoyou.com. Clearing all site data also removes other local settings for that origin.
There is no server copy from which we can recover deleted entries. Clearing browser data, switching profiles, or ending a private-browsing session can remove access to local history. Browser storage is useful persistence, not a guaranteed backup.
The limits of local storage
- Shared devices: another person using the same browser profile can potentially view stored history. Prefer a separate profile on a shared computer.
- Page scripts: JavaScript running in the same origin can access localStorage. Application security and the scripts a page loads matter.
- Browser extensions and device access: extensions with relevant permissions or someone with access to the device may be able to inspect data.
- Storage availability: browser settings, private mode, and quotas can affect persistence. Confirm that a test entry survives a reload before relying on it.
Where encryption fits
A different design could encrypt records before saving them. For example, Web Crypto supports AES-GCM authenticated encryption, but a working design also needs key derivation, unique IVs, secure password handling, and a recovery policy. These are educational design options, not features currently implemented in Period Tracker. Encryption with a password forgotten by the user can also make recovery impossible, and it does not protect against malicious code reading data while the app is unlocked.