- Import Fernet
- Then, at that point, create an encryption key, that can be utilized for encryption and unscrambling.
- Convert the string to byte string, with the goal that it tends to be scrambled.
- Occurrence the Fernet class with the encryption key.
- Then, at that point, scramble the string with Fernet example.
- Then, at that point, it tends to be decoded with Fernet class occurrence and it ought to be instanced with a similar key utilized for encryption.
Awry key Encryption:
In Asymmetric-key Encryption, we utilize two keys a public key and private key. The public key is utilized to encode the information and the private key is utilized to unscramble the information. By the name, the public key can be public (can be shipped off any individual who needs to send information). Nobody has your private key, so nobody the center can peruse your information.
Install the python rsa library with the following command.
pip install rsa
Also Read: Reading an Excel File using Python