this post was submitted on 01 Oct 2024
56 points (92.4% liked)

Ask Lemmy

26996 readers
1494 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] NOT_RICK@lemmy.world 32 points 1 month ago (2 children)

To collect this data, Cloudflare has arranged about 100 lava lamps on one of the walls in the lobby of the Cloudflare headquarters and mounted a camera pointing at the lamps. The camera takes photos of the lamps at regular intervals and sends the images to Cloudflare servers. All digital images are really stored by computers as a series of numbers, with each pixel having its own numerical value, and so each image becomes a string of totally random numbers that the Cloudflare servers can then use as a starting point for creating secure encryption keys.

[–] RattlerSix@lemmy.world 8 points 1 month ago* (last edited 1 month ago) (1 children)

I'm sure they're smarter than me but my novice cryptographer brain doesn't understand this.

Isn't the string of numbers representing each pixel rather limited Aren't all those sections of the image that have lava lamps limited to values somewhere in the reddish/blueish spectrum? Isn't the gray background very non-random?

Apparently the camera is accessible in the lobby. They say people walking in front of the camera adds randomness. If I go there and hold a photo in front of the camera which I know the values of, doesn't that compromise everything?

To be fair their site says they take the lava lamp output and combine it with entropy from two servers and probably do a lot of other stuff before actually getting random numbers. But I don't get how the lava lamps photo setup is even close to being random

tried and failed to add image, so here a link: https://www.cloudflare.com/learning/ssl/lava-lamp-encryption/

[–] barsquid@lemmy.world 5 points 1 month ago (1 children)

If you hash the image with a strong algo, even a single different pixel should end up in a wildly different result.

[–] RattlerSix@lemmy.world 2 points 1 month ago

But different doesn't mean random. An attacker could test every possibility for that pixel rather quickly. Even faster if you know a bunch of the pixels are, for example, a shade of gray.

I found an explanation where they bring up the issues I brought up as well as some others.

https://blog.cloudflare.com/lavarand-in-production-the-nitty-gritty-technical-details/

They give an example with one red value for a single pixel. They don't address my point that there are a lot of pixels like that one, maybe not all would be 50/50 like their example but a lot of pixels would have a much narrower range of values than randomness.

But they answer my second point about a hacker putting something in front of the camera with known values and that answer sort of takes care of everything. It boils down to, it doesn't matter because the lava lamp wall output is mixed with other sources that an attacker doesn't have access to.

[–] wise_pancake@lemmy.ca 3 points 1 month ago (1 children)

Surely that can’t be uniform random though

But they’re just using it for a seed, so the output would be impossible to predict, but it feels like a checksum or something would approach a Gaussian distribution (the more numbers you add up, the more Gaussian it would be, since we know an image will have a mean and finite variance).

[–] palordrolap@fedia.io 10 points 1 month ago

There are ways to get entropy out of non-uniform data in order to approach if not reach a uniform distribution.

A naïve, but surprisingly effective way to do this would be to put the data through a hashing algorithm of some sort.

Good hashing algorithms are specifically designed to make similar but non-identical inputs hash to values that appear unrelated.

Depending on the data source, there may be more efficient ways of getting an unpredictable sequence of bits out of it. e.g. for image data, an image difference from an average image may be more appealing than using the plain image, but I'm not sure whether that's legitimately "more random" or whether it just feels that way.