HackerTrans
TopNewTrendsCommentsPastAskShowJobs

neopub

no profile record

Submissions

Encrypted Social Network with Web Crypto API and Cloudflare Pages and Workers KV

neopub.pages.dev
1 points·by neopub·5년 전·0 comments

Show HN: Neopub – E2E-encrypted social network (open-source and self-hosted)

neopub.pages.dev
1 points·by neopub·5년 전·0 comments

comments

neopub
·5년 전·discuss
I've been tinkering around with these ideas at https://github.com/neopub/neopub (demo at https://neopub.pages.dev).

It runs entirely in the browser, using the Web Crypto API. For key management, I store the user's private keys in the browser's password manager, and friend keys in IndexedDB, backed up to the user's host in a client-side encrypted blob.

> When someone adds a friend, how do you grant that new friend access to their older friends-only posts? How do you revoke that access, and access to any future posts, when they unfriend someone?

My project publishes an encrypted post as one file, then 1 keyfile for each of your friends to unlock that post. When you unfriend someone, you can just delete all their keyfiles and cease generating them for future posts.