Is it possible to calculate the private key if you know the time (in the suitable format) when the key was generated on a single PC (Windows, Linux or others)?

P.S. Using it's custom libraries for this magic.

2 Answers 2


No, the time when the key was generated is entirely irrelevant. A private key is essentially a random number and with a robust source of randomness the time it takes to generate this random number is completely independent of the random number generated. For example, if we both run the same random number generator for exactly 5 minutes we should each generate completely different random numbers. With a flawed source of randomness we may both generate the same random number after exactly 5 minutes but this source of randomness should not be used for generating private keys.

  • Each wallet will generate randomness differently. The code for generating randomness in the Bitcoin Core wallet is here. If the wallet did a really bad job of generating randomness then there might be a concern. github.com/bitcoin/bitcoin/blob/master/src/random.cpp Jan 25, 2021 at 14:01
  • You sure about that? Jan 25, 2021 at 23:16
  • Sure about what specifically? That wallets will generate randomness differently? Jan 26, 2021 at 0:10

Private key is not related to time or operating system it is just created from random number which is called secret exponent there are lots of procedure to recover the private key but all are infeasible to recompute it so, everyone btc is safe :)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.