Files
shakespeare/src/lib
Alex Gleason c5605c9be8 Derive private iframe.diy subdomains with HMAC-SHA256
The project ID used for the preview iframe subdomain is AI-generated
from user input. Using it directly as the iframe.diy subdomain lets
a crafted project name produce a subdomain that collides with another
project's origin, gaining access to its localStorage/IndexedDB.

Introduce a persistent random seed in localStorage (shakespeare:seed)
and derive the subdomain as base36(HMAC-SHA256(seed, prefix|identifier)).
The prefix ("preview") domain-separates different use-cases.
The subdomain is stable per device+project but unpredictable to
third parties.
2026-04-06 00:46:01 -05:00
..
2026-02-05 23:46:25 -06:00
2026-01-21 14:46:11 -06:00
2026-03-24 17:03:39 -05:00
2026-01-17 23:22:02 -06:00
2025-12-28 22:52:32 -06:00
2026-01-21 21:19:06 -06:00
2025-11-03 17:39:51 -06:00
2025-10-29 22:14:23 -05:00
2025-12-05 17:28:53 -06:00
2025-10-29 22:14:23 -05:00
2026-03-24 17:03:39 -05:00
2025-12-01 21:06:47 -06:00
2025-10-23 14:50:05 -05:00