gpg: encrypted with RSA key, ID C05B138C

Hello everybody.
I had to format my PC because of a virus and when I reinstalled it and installed gpg4win I realized I could not open my encrypted files even though I was providing the correct password.
When I ran gpg on the command line I got this: gpg: encrypted with RSA key, ID C05B138C.

What can I do to create a new matching private key so that I can decrypt my files?

Carlos

“What can I do to create a new matching private key so that I can decrypt my files?”

You can’t. If you didn’t save a copy of your private key somewhere else and it was erased during formatting, it’s gone. The key creation process is inherently random and the ability to retroactively create a specific private key would be a major security flaw. Sorry.

-Sean