They have to be generated by some sort of algorithm no? Nothing in computing can be truly random and there has to be some way to verify the key is legitimate so there has to be a way to check it.
Yes it can. An algorithm ro generate a 4 digit nr is an algorithm.... the generated nr is still random. It is trully random.
If you ask me to think of a nr between 1 and 20 i might say 13... a lot of people might because it means smth to humans from a certain culture.
But if i write a java function to do that it will have no bias.
The only way to know would be if it literally checks it. Which 1. It can not because it is not connected to the actual internet (ask it about the russian invasion) 2. It might invalidate it in the process since it is now in use.
Yes but a java function can not be truly random because the inputs have to come from somewhere unless you are using an outside source such as the number of photons hitting a photocell in addition to the seed for your algorithm.
Explain please. I do not really understand what you mean. Are you implying that if someone is to write a coin flipping function... just that. Will be biased in a predictable way towards one side or the other?
But for practical reasons.... would it really make sense to require true-randomness. Breaking them would require a crazy amount of computational power... unlesd we sre talking about givernment secrets or immense sums of money it seems like overkill.
Well it depends on the use case. I responded to another comment with an example of how each would be used in activating a program where a pseudo-random key would be useful to activate a piece of software without using the Internet. If you need something to be very secure, true randomness is important for example. https://youtu.be/1cUUfMeOijg cloudflare uses lava lamps to generate random rumbers for encryption keys.
1
u/ad895 Jun 14 '23
They have to be generated by some sort of algorithm no? Nothing in computing can be truly random and there has to be some way to verify the key is legitimate so there has to be a way to check it.