Texcrets

less than 1 minute read

title: “Texcrets” tags: poc secrets texcrets crypto client-side-encryption —

What I wanted for so long is now here: client-side encryption on a web page with Yubikey (or platform passkey, or password): and I called that Texcrets!

TL;DR; I can write posts here with blocks like:

{ % texcret %}
This text must be hidden from public eyes (read encrypted).
{ % endtexcret %}

(I put extra space in tag opennings to go under the radar with the example above).

And they are texcreted into blocks like this at pre-commit via a texcret cli:

WUtMQjIAWoR+A+pe1UDbfMDaAAMtLS0AAeeq6Csra2XDS9x+sKSkQpZACVKqCLx6ngbV9BYAMC83eSK29gi7IOBJ2ryrO1UXZskCpjyCG7i/SL7wYA7+MkHTmz+NwrRdQjFM/d6XPqNIBJywYy2/fbElDne0RGqguuZsEXnFmwPfn3uw63j/UahX3+dGIuWIwFWj6W1Foz+5aJx3xnoK6KQ0qFfdZpCcC/wJILEuYzMpk1HN

Which I can temporarily decrypt (in-page without any network communication) magically by performing the following click pattern on it: dblclick - click - dblclick.

Check the demo or github repo.

Updated: