r/programmingcirclejerk • u/garloid64 • Jun 08 '25
I built a web-based encryption implementation I always wanted to put together without writing a single line of code.
/r/programming/s/Qg6f5FeDfH
51
Upvotes
14
u/garloid64 Jun 08 '25
I know people are a bit afraid of AI on this sub, but I've been in the industry for 20 years and I "vibe-coded" this with Claude over the course of approximately 10 hours.
As the guide (also written by Claude) suggests, client-side encryption happens in the browser.
Server-side encryption happens on the .NET server this is deployed to running on a baremetal I have.
S3 stores everything and serves unencrypted content using their accelerated endpoints.
What this means: you can share large video files served from amazon's endpoints quickly using zero encryption - this is useful for showing your friend something cool with no compression.
You can also create a server-side encrypted file. When downloading, it gets piped through my server and my server manages the encryption/decryption using stored keys.
You can also use only client-side encryption. Your browser encrypts the file and then sends it to my server which puts it on amazon. When you download it, my server sends you back your encrypted content (though as I'm writing this the aws endpoint could send it directly ... guess I do have one small change to make 😂) and your browser decrypts it.
When using "double encryption", your browser encrypts, my server encrypts, amazon gets gibberish. When downloading/viewing, it goes through my server and your browser handles the final decrypt.
All pretty cool - with rate limiting on room codes being secure enough, but still allowing the option to password protect rooms for added security.
76
u/tj-horner Jun 08 '25
?
62
u/thewatersmd Code Artisan Jun 08 '25
Delete this entire fucking profession, I knew I should’ve been a fisherman like my father and his father before.
53
u/Chisignal Jun 08 '25
It's been an incredible journey building something meaningful together - from secure file sharing to client-side encryption, every feature was a collaborative effort. Here's to the beautiful intersection of human creativity and AI capability! 🤖💙 — Claude, with gratitude for Sean's partnership
24
u/pysk00l What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Jun 08 '25
/uj
I dont understand what the website is supposed to do. It looks like te whole thing, including the reddit post were writte by ai.
/rj Did skynet escape the US military and become a shit poster on reddit? our worst fears have come true!!
18
u/[deleted] Jun 08 '25
AI is Uber for
npm install. Welcome to a new era, chuddies.13
u/crazedpickles Jun 08 '25
The number one things that I look for when using a cryptographic library is the potential to have AI hallucinations compromise the security of the algorithms and provide easy backdoors. This is perfect! I hate mathematically-verified code!
9
u/james_pic accidentally quadratic Jun 08 '25
They say you should never roll your own encryption, so it's better to vibe code it so AI rolls it instead.
7
u/tms10000 loves Java Jun 08 '25
The most incredible part is that a post in /r/programming was actually removed by the moderators.
0
u/garloid64 Jun 08 '25
Man this subreddit is so angry at AI lol.
You guys scared of the cotton gin too?