from cryptography.fernet import Fernet key = Fernet.generate_key() cipher_suite = Fernet(key) cipher_text = cipher_suite.encrypt(b"Secret message") print(cipher_text)
from cryptography.fernet import Fernet key = "fs4hf4oiuv4hf4w8ru4ygn3q24b8934qo8h34" cipher_suite = Fernet(key) plain_text = cipher_suite.decrypt(b"Encrypted message") print(plain_text)By looking at the imports and referencing the documentation for the `cryptography` package, it can be determined that this example is utilizing the `cryptography` package library.