]> git.ardis.lu - static-encrypt-passkey/log
static-encrypt-passkey
14 months agoPad plaintext bytes so the encoded ciphertext has no base64 padding
Ardis Lu [Wed, 23 Jul 2025 04:18:51 +0000 (21:18 -0700)]
Pad plaintext bytes so the encoded ciphertext has no base64 padding

Since base64 padding is ignored on decode, the padding can be deleted or replaced with junk data. As a result, it is possible to decode different strings into the same bytes. By padding the bytes so the bytes are a multiple of 3, there is never base64 padding and exactly one input yields the desired output.

14 months agoExtend params to recommended minimum
Ardis Lu [Tue, 22 Jul 2025 03:08:35 +0000 (20:08 -0700)]
Extend params to recommended minimum

https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams

14 months agoFix centering on Firefox
Ardis Lu [Tue, 22 Jul 2025 02:57:50 +0000 (19:57 -0700)]
Fix centering on Firefox

14 months agoRemove challenge
Ardis Lu [Mon, 21 Jul 2025 03:47:34 +0000 (20:47 -0700)]
Remove challenge

Challenge does not make sense in this context because both passkey creation and retrieval are entirely client-side.

The signed challenge is also not verified, and so challenge is actually unused and could be replaced by any junk value in the output content without affecting the decryption.

14 months agoSet domain to `108117.xyz`
Ardis Lu [Sun, 20 Jul 2025 07:34:17 +0000 (00:34 -0700)]
Set domain to `108117.xyz`

14 months agoInitial commit
Ardis Lu [Sun, 20 Jul 2025 06:08:48 +0000 (23:08 -0700)]
Initial commit

This page took 0.0456 seconds and 4 git commands to generate.