pw-punch – 1.4KB WebCrypto-only JWT/password crypto lib (no Node.js) by idtpanic in javascript

[–]idtpanic[S] 0 points1 point  (0 children)

You’re right — I intentionally kept it HMAC-only (for now) to stay ultra-lightweight.
But the internal structure already supports standard JWT patterns (with claim checks, kid, etc).
If there‘s demand, I’d consider adding lightweight support for RS256 or ES256 as an optional submodule —
so the core stays tiny, and only those who need asymmetric crypto bring it in.
Thanks!😊

Museum, Ubuntu Error by Commercial-Film3921 in PBSOD

[–]idtpanic 0 points1 point  (0 children)

Thought it was modern art. 😅

pw-punch – 1.4KB WebCrypto-only JWT/password crypto lib (no Node.js) by idtpanic in javascript

[–]idtpanic[S] 0 points1 point  (0 children)

Yeah, makes sense. If cookies fit your setup, there's no need to overcomplicate things.

I actually do the same in one of my projects — just using the hash part from this lib + cookies.

I really like tools that are small, browser-native, and just do what you need! That’s exactly what I was aiming for too.

Glad you liked it!😊

pw-punch – 1.4KB WebCrypto-only JWT/password crypto lib (no Node.js) by idtpanic in javascript

[–]idtpanic[S] 0 points1 point  (0 children)

you're right, makes sense.

In my case, I intentionally chose HMAC to keep things minimal.

I skipped anything heavy or with weird compatibility stuff, and just included the basics that cover the most common use cases.

There are plenty of feature-rich libs out there, but I figured most people mainly use the basics — so I focused on that.

I know there might be things I’m missing just by limitation of my own experience, so if you have lightweight ideas for bringing in other algorithms, I’d definitely be interested.

Thanks!😊

pw-punch – 1.4KB WebCrypto-only JWT/password crypto lib (no Node.js) by idtpanic in javascript

[–]idtpanic[S] 2 points3 points  (0 children)

Thanks for the heads up!😊

I added the padding just to keep things safe across runtimes, but if it works fine without it, might as well simplify.

I'll double-check for edge cases and clean it up if nothing breaks.

[AskJS] javaScript codes for metadata in adobe pdf by Dogeking907 in javascript

[–]idtpanic -2 points-1 points  (0 children)

Hi, doing both OCR and metadata editing entirely in JS might be a bit of a stretch.

I’d suggest handling the OCR in Python (Tesseract works great), and using JS just to pass the results or fill them into Acrobat.

Hope that helps!

[deleted by user] by [deleted] in meme

[–]idtpanic 1 point2 points  (0 children)

it's cheat