AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
from PIL import Image
import stepic
#Encryption

im= Image.open('PATH OF IMAGE')
im1 = stepic.encode(im, b'Hello Python')
im1.save('PATH OF ENCRYPTED IMAGE')
im1 = Image.open('PATH OF ENCRYPTED IMAGE')
im1.show()

# Decryption
im2 = Image.open('PATH OF ENCRYPTED IMAGE')
Image = stepic.decode(im2)
print(Image)
👍1