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)
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
from tkinter import *
import wikipedia
def on_click():
q=get_q.get()
text.insert(INSERT , wikipedia.summary(q))
root=Tk()
root.title("Application title")
question=Label(root,text='Question')
question.pack()
get_q=Entry(root,bd=5)
get_q.pack()
submit=Button(root,text='Search',command=on_click)
submit.pack()
text=Text(root)
text.pack()
root.mainloop()
import wikipedia
def on_click():
q=get_q.get()
text.insert(INSERT , wikipedia.summary(q))
root=Tk()
root.title("Application title")
question=Label(root,text='Question')
question.pack()
get_q=Entry(root,bd=5)
get_q.pack()
submit=Button(root,text='Search',command=on_click)
submit.pack()
text=Text(root)
text.pack()
root.mainloop()
from tkinter import *
from tkinter import messagebox
import pyspeedtest
def logic():
st=pyspeedtest.SpeedTest("www.google.com")
a=(str(st.download()) + "[Bytes per second]")
messagebox.showinfo("Your Download speed:",a)
top=Tk()
top.title('AK speed Test')
top.geometry('100x100')
filename=PhotoImage(file="Path of your image.")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)
b=Button(top,text='Click to see the Internet speed',font=('San serif',20),bg='Yellow',height=1,width=30,command=logic).pack()
top.mainloop()
from tkinter import messagebox
import pyspeedtest
def logic():
st=pyspeedtest.SpeedTest("www.google.com")
a=(str(st.download()) + "[Bytes per second]")
messagebox.showinfo("Your Download speed:",a)
top=Tk()
top.title('AK speed Test')
top.geometry('100x100')
filename=PhotoImage(file="Path of your image.")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)
b=Button(top,text='Click to see the Internet speed',font=('San serif',20),bg='Yellow',height=1,width=30,command=logic).pack()
top.mainloop()