Write a Python program and use of PyCryptodome library is recommended

Job ID: 33525463

Budget: ₹1,500 – ₹12,500 INR

Contact me for more details of tasks.

Create a text file “p1.txt” with the following text: “Test message 1”.
Generate a random 256-bit key “k1”.
Encrypt the contents of “p1.txt” using ChaCha20 and the key “k1”, and save the resulting
ciphertext to a file “c1.txt”. Before saving, encode the ciphertext using Base64 (so that it can
be conveniently printed on the screen).
Related categories: Python Cryptography