I want to encrypt a message using python in A360
code
from cryptography.fernet import Fernet
def enfun():
message=‘Hello Automation’
key=Fernet.generate_key()
f=Fernet(key)
encryptedmessage=fernet.encrypt(message.encode())
return encryptedmessage
Installed pip3 install cryptography library. When I run above code the python script is returning bot error to the output variable.
I’m able to run same code in cmd but not from A360
Thanks in Advance