Hello I am trying to encrypt this variable using the Fernet method from the cryptogrphy module.
MedicalInfo=("Garlic Phobia")
EcryptMedInfo= Ecy.encrypt(MedicalInfo)
print(EcryptMedInfo)
However I keep receiving this error message:
TypeError: data must be bytes.