This Python script allows you to encrypt and decrypt messages using the Fernet symmetric encryption method from the cryptography library.
- The script first generates a key for encryption and decryption using the generate_key() function.
- It then prompts you to enter a message to be encrypted.
- The script encrypts your message using the encrypt_message() function and the generated key, and prints the encrypted message.
- Finally, the script decrypts the encrypted message using the decrypt_message() function and the same key, and prints the decrypted message.
This script can be useful in scenarios where you need to securely store or transmit sensitive information.