I have a bit of an odd question, I have two wallet files that I encrypted a few years ago, both of them have the same password, I have the private key for one of the wallet json files (MEW structure). I know it's unlikely, but is it possible for me to identify the password of the wallet using the private key when I have that alongside the wallet.json containing the ciphertext, salt and other relevant info?
1 Answer
What you're trying to do is called a known-plaintext attack. The algorithm used by Ethereum keystore files (usually AES-128) is resistant to these kinds of attacks, and doing a known-plaintext attack would essentially be bruteforcing the password.
For reference: