Login
You're viewing the front-end.social public feed.
  • Oct 20, 2026, 5:45 PM

    @cccpresser cryptography, basically, is doing math with input data, and a secret number. You want secret number to be big and random, so no one could guess it and undo your math

    number 4 is, obviously, neither big nor very random...

    @q

    💬 1🔄 2⭐ 1

Replies

  • Oct 20, 2026, 6:47 PM

    @mo @cccpresser @q

    I'm no expert so tell me where I'm wrong:

    1. If you have a large range from which to choose a number randomly then 4 is entirely possible.

    2. The criterion is a number hard to factor.

    Is that right?

    💬 1🔄 0⭐ 0
  • Oct 20, 2026, 6:58 PM

    @rzeta0
    I don't think factoring is relevant here -- it's not RSA, it's a different annoying function to invert -- but I do think that ending up with such a distinctive number 4 seems unlikely to have been random.

    💬 0🔄 1⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 20, 2026, 7:46 PM

    @mo @cccpresser @q strictly speaking, 4 is exactly as random as any n such that n is a member of the set of natural numbers.

    But it's not exactly as likely to be tested by an adversary as any other..

    💬 1🔄 0⭐ 0
  • Oct 21, 2026, 5:08 AM

    @simon_brooke it's random but it's easy to guess.
    Realistically you want a certain size requirement here, just like you don't pick small primes with RSA, no matter how random they are.

    💬 1🔄 1⭐ 1
  • 💬 0🔄 2⭐ 0