Let's say I want to make an encrypted message app (just an example). So, I will need a user1 with a password1, private key1 (that will be encrypted with the password1), public key1 (that will depend on private key1), and the data1 (that will be generated in encrypted format by another user2 using the public key1 mentioned before). So, I'm pretty sure I got all this correct (right?). But here comes something I simple can't figure out nor do I able to find an answer online:
What if I need to change my private key1? How in the world would I be able to recover the data1? The reason for this is simple, it might be a case that the password is compromised and as a result the private key, so it must be changed.
Is there really no way around this?