Live data from Hacker News

Show HN: Share It, Anonymously with Self Destruct Messages

pastenow.me

41–50 of 68 posts

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#41
post #25
post #3

Earlier quoted context omitted.

It looks very good for something whipped up in an hour. Did you consider using Redis as a data store for this? Seems like it would be quite easy to just generate a UUID as a key and set it with an expire time in redis. If you did consider Redis, any reason why you didn't end up using it?

If you want privacy and anonymity, be careful about how you're generating your UUID. Some flavors of UUID are just the MAC address, process ID, and timestamp, which makes them trivially guessable (and poorly scalable). Instead of a UUID, just read 16 bytes from /dev/urandom (getentropy() if you've got it). Base85 or Base64 encode the bytes if you need a string.

Love the idea. I ll implement : )

Thanks for visioning better !

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#42

Taking advantage of this post to ask about this -- can anyone explain to me why Signal can't be implemented as a completely offline-first/PWA web-app. If we throw away the more advanced requirements of perfect forward secrecy, non repudiation, ratcheting for groups, non repudiation, why is it a bad idea to get 80% of the way there with basic offline-first/WPA (+/- secure enclave, WebAuthN, whatever else) messages tha…

> can anyone explain to me why Signal can't be implemented as a completely offline web-app It's a messaging app. What's the point of a messaging app if you're never connected to anyone else to message them?

Edited for clarity, what I meant there was offline-first/PWA. The idea of being able to do things completely offline and use some other medium is also interesting, but what I mean to convey is web apps built with the expectation that the internet may not be connected (and keep working).

Generally offline-first/PWAs can be made "installable" by setting metadata on the page that hosts them and doing other things.

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#43
post #26
post #24

for the longest time we had issues with people pasting passwords in slack to share them within the org. one hackathon later we had a one time secret sharing slash command (which you can only reveal the message once and is then lost/deleted). self-hosted. it's the thing i'm asked most about if it was OSS after i left the company (by other ex-colleagues looking to have the same thing elsewhere).

That’s a great product by the way. Feels like a Freemium model based on number of unique users could be pretty effective.

Its the haunt of existing premiums that drove me to make this. :)

Literally free : )

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#44
post #27

I ll be honest here: I litreally did this because i was getting tired of not being able to find a platform where i can be confident that: Yes, from an end to end there is no middleman snooping etc. I ll publish the code on github too. The idea is that on every startup, system generates a new keys to encrypt data. This site is hosted on a single docker instance and there is no output (logs etc) for now. I dont intend…

What's wrong with the cryptpads?

Anyway, a bit of feedback:

1. You really need a privacy policy

2. Instead of very long hexadecimal UUIDs use shorter IDs with more valid characters. Do you really need 128 bits for something that has to be brute forced and only lives for a limited time? Perhaps 64 bits are sufficient?

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#45

Taking advantage of this post to ask about this -- can anyone explain to me why Signal can't be implemented as a completely offline-first/PWA web-app. If we throw away the more advanced requirements of perfect forward secrecy, non repudiation, ratcheting for groups, non repudiation, why is it a bad idea to get 80% of the way there with basic offline-first/WPA (+/- secure enclave, WebAuthN, whatever else) messages tha…

> why Signal can't be implemented as a completely offline-first/PWA web-app.

Because some people want and/or need the things you said to just throwaway.

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#47

Taking advantage of this post to ask about this -- can anyone explain to me why Signal can't be implemented as a completely offline-first/PWA web-app. If we throw away the more advanced requirements of perfect forward secrecy, non repudiation, ratcheting for groups, non repudiation, why is it a bad idea to get 80% of the way there with basic offline-first/WPA (+/- secure enclave, WebAuthN, whatever else) messages tha…

The problem with web apps is that doing timing sensitive stuff such as encryption and decryption in javascript is risky and difficult. Javascript also takes a serious toll on performance and battery life. I'm assuming "completely offline" means that it still sends some data somewhere, otherwise the messenger wouldn't make any sense. I don't really understand the need for it to be a web app other than developer conven…

> The problem with web apps is that doing timing sensitive stuff such as encryption and decryption in javascript is risky and difficult. Javascript also takes a serious toll on performance and battery life.

This feels like somewhere WebAuthn and/or Emscripten/WASM help a little bit here? I'm most worried about vulnerabilities to the underlying protocol and less about perf/battery life (maybe some side-channel attacks?).

> I'm assuming "completely offline" means that it still sends some data somewhere, otherwise the messenger wouldn't make any sense.

Yes, I did a bad job of explaining this, but online-when-you-need-to-be. "offline" was meant to mean "offline-first", a common frontend terminology for PWAs.

> Adding encryption (proper encryption) to the Telegram client would net you a fully native experience that works cross-platform without issues. Going native also allows you access to stuff like TPMs, although you can assume most desktop machines still don't have them. You also have much more control over the security properties of the code if you stick to native code.

> The folks over at Matrix are experimenting with running their Matrix servers in a peer to peer configuration on the device itself. Stuff that server into a cross platform client like Fluffychat or Element and you've got yourself a chat app with federation and cross platform chat support without relying on any specific server.

Well that would be great, I'd love to just do that.

> If you want to stick to a browser only solution, I'm not entirely sure how you'd go about making that talk to other clients. IPFS requires access to a third party gateway, as do most peer to peer solutions. I think you can make WebRTC work as a means of full P2P through a DHT but I'm not entirely sure how.

I think you can get away with signaling (STUN/TURN) here -- if you have WebRTC you can go STUN-only and even if you have to TURN if you're sending encrypted data then it shouldn't matter. Honestly I think IPFS is actually overkill for this (though it has it's upsides), the only technology you really need for this to work is WebRTC + a STUN/TURN server.

> The problem with a simple, offline, encrypted chat client is that it's not simple. Security is very hard; if you're willing to give that up, there's plenty of IRC web clients for you to choose from. If you've got any good ideas on how to build this, I encourage you to work it out and make a proof of concept, because it sounds like it could be very useful.

But at this point we have methods that work, there's no need to rethink the primitives, we've got good well-tested schemes for sending simple messages. In the desktop world simply gpg encrypting and sending files is good enough (even a basic scheme with asymmetric crypto + nonce + symmetric key + symmetric crypto), why is messaging so hard as to be unattempted even in the 1-to-1 case?

Maybe the only way for this to really get it's tired kicked is to just build the thing in a weekend (if I'm right about it being so simple then it "should" be easy, right?) and post it to HN.

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#48
post #45

Taking advantage of this post to ask about this -- can anyone explain to me why Signal can't be implemented as a completely offline-first/PWA web-app. If we throw away the more advanced requirements of perfect forward secrecy, non repudiation, ratcheting for groups, non repudiation, why is it a bad idea to get 80% of the way there with basic offline-first/WPA (+/- secure enclave, WebAuthN, whatever else) messages tha…

> why Signal can't be implemented as a completely offline-first/PWA web-app. Because some people want and/or need the things you said to just throwaway.

Some people do, but not everyone, and I'm personally not interested in an app that does it perfectly but no one can use.

Also, I did not mean to imply that the features could not be done -- they ostensibly can, it's just that I am not willing to accept the lack of them or possible lack of them as a reason, because a lot of people don't even know it's happening/don't know when it's missing. More interested in increasing the base of people who use more secure messaging that is more independent and simpler to understand where possible.

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#49
post #25

Earlier quoted context omitted.

If you want privacy and anonymity, be careful about how you're generating your UUID. Some flavors of UUID are just the MAC address, process ID, and timestamp, which makes them trivially guessable (and poorly scalable). Instead of a UUID, just read 16 bytes from /dev/urandom (getentropy() if you've got it). Base85 or Base64 encode the bytes if you need a string.

Any resource about this? Someone mentioned it before and it seems false. UUIDS are made to scale and i think it's mostly about a lack of understanding of UUIDS. Eg. some versions of UUIDS are meant to be deterministic, some for sortability, ... https://en.m.wikipedia.org/wiki/Universally_unique_identifie...

It was over 20 years ago now, and I don't remember which library it was, but I ran across a type-1 UUID library that stored the timestamp of the latest UUID it handed out in a static (or maybe thread-local, I forget) variable, and would nanosleep until the system clock next ticked if it had already handed out a UUID with the current timestamp. So, you were limited in your UUID generation rate by the resolution of the system clock.

(I guess the fear was that it was theoretically possible for the process to crash and come back up with the same PID/TID within the same system clock tick, if the machine were really chewing through processes rapidly. It's good, as they aren't called Nearly Unique IDs, and the main use for type-1 UUIDs would be if you're paranoid about RNG collisions, but it does limit you to one ID per system clock tick, even though the timestamp in the type-1 UUID is actually 100-nanos resolution.)

A better solution would have been to query the system clock resolution, at library initialization time check the current system timestamp, and use the low bits of the type-1 UUID timestamp as a counter, being careful to never catch up to the current time. The library wouldn't have been able to hand out any UUIDs during the first system clock tick after library initialization, but after that, it could hand out up to 10 million UUIDs per second per thread. If that's not fast enough, one could also have it check for multiple network cards and use a pool of MAC addresses instead of just the primary interface's MAC address.

Re: Show HN: Share It, Anonymously with Self Destruct Messages

#50
post #45

Earlier quoted context omitted.

> why Signal can't be implemented as a completely offline-first/PWA web-app. Because some people want and/or need the things you said to just throwaway.

Some people do, but not everyone, and I'm personally not interested in an app that does it perfectly but no one can use. Also, I did not mean to imply that the features could not be done -- they ostensibly can, it's just that I am not willing to accept the lack of them or possible lack of them as a reason, because a lot of people don't even know it's happening/don't know when it's missing. More interested in increasi…

The whole point of signal is that it's secure and has reasonable UX. As soon as you can start choosing security parameters it becomes unnecessarily complicated for the average person with added scope to mess something up
Post reply on HN