If this can be repurposed to just password protect a specific section of a page, then can it be repurposed to decrypt JavaScript embedded/encrypted in that section performs an "authenticated" API calls.
This could be useful if you want to allow making edits and publishing this to a server, but keep authentication entirely client-side.
This could be useful if you want to allow making edits and publishing this to a server, but keep authentication entirely client-side.