Is there a method of encryption where you can't work out the key even with the encrypted and decrypted message? I'm looking for a method of encryption that fulfills the following parameters:
To still be able to display a result even if decrypted with the wrong key.
If the encrypted and decrypted message is found, the key cannot be worked out.
Forgive me if I'm being stupid but I'm new to this area!
Thanks
The point of "modern" cryptography is that "the strength" relies solely on the key.
What you are describing is called a known-plaintext attack and state of the art algorithms (like AES) should not be prone to it.