News for hackers. Stuff that matters.
Re:Ask HN: How do you share passwords simply and securely? by some_furry on Wednesday April 29, 2020 @03:37PM (#23023242)
That's the ticket though: I suspect the entropy is really bad.

This is how encryption_key gets invoked: https://github.com/onetimesecret/onetimesecret/blob/8ba0511e...

This is where the entropy is sourced from: https://github.com/onetimesecret/onetimesecret/blob/8ba0511e...

The global secret comes from: https://github.com/onetimesecret/onetimesecret/blob/8ba0511e...

self.key comes from gibbler.base(36): https://github.com/onetimesecret/onetimesecret/blob/8ba0511e...

At no point is anything touching /dev/urandom, which is how cryptography keys should be generated.

(Additionally, HKDF-SHA-256 should be used for splitting a master key into multiple sub-keys.)

I don't know if I want to file an issue for this on Github or not. Usually when the crypto is this bad, there's a lot of cargo-culting and I don't have the emotional bandwidth to deal with a vim-crypt style debate.

Re:Ask HN: How do you share passwords simply and securely? by zxcmx on Wednesday April 29, 2020 @06:21PM (#23025199)
Yeah I had a look and this is... not great.

I take it all back.