# Python program implementing Image Steganography
# PIL module is used to extract
# pixels of image and modify it
from PIL import Image
# Convert encoding data into 8-bit binary
# form using ASCII value of characters
def genData(data):
# list of binary codes
# of given data
newd = []
for i in data:
newd.append(format(ord(i), '08b'))
return newd
# Pixels are modified according to the
# 8-bit binary data and finally returned
def modPix(pix, data):
datalist = genData(data)
lendata = len(datalist)
imdata = iter(pix)
for i in range(lendata):
# Extracting 3 pixels at a time
pix = [value for value in imdata.next()[:3] +
imdata.next()[:3] +
imdata.next()[:3]]
# Pixel value should be made
# odd for 1 and even for 0
for j in range(0, 8):
if (datalist[i][j] == '0' and pix[j]% 2 != 0):
pix[j] -= 1
elif (datalist[i][j] == '1' and pix[j] % 2 == 0):
if(pix[j] != 0):
pix[j] -= 1
else:
pix[j] += 1
# pix[j] -= 1
# Eighth pixel of every set tells
# whether to stop ot read further.
# 0 means keep reading; 1 means thec
# message is over.
if (i == lendata - 1):
if (pix[-1] % 2 == 0):
if(pix[-1] != 0):
pix[-1] -= 1
else:
pix[-1] += 1
else:
if (pix[-1] % 2 != 0):
pix[-1] -= 1
pix = tuple(pix)
yield pix[0:3]
yield pix[3:6]
yield pix[6:9]
def encode_enc(newimg, data):
w = newimg.size[0]
(x, y) = (0, 0)
for pixel in modPix(newimg.getdata(), data):
# Putting modified pixels in the new image
newimg.putpixel((x, y), pixel)
if (x == w - 1):
x = 0
y += 1
else:
x += 1
# Encode data into image
def encode():
img = input("Enter image name(with extension) : ")
image = Image.open(img, 'r')
data = input("Enter data to be encoded : ")
if (len(data) == 0):
raise ValueError('Data is empty')
newimg = image.copy()
encode_enc(newimg, data)
new_img_name = input("Enter the name of new image(with extension) : ")
newimg.save(new_img_name, str(new_img_name.split(".")[1].upper()))
# Decode the data in the image
def decode():
img = input("Enter image name(with extension) : ")
image = Image.open(img, 'r')
data = ''
imgdata = iter(image.getdata())
while (True):
pixels = [value for value in imgdata.next()[:3] +
imgdata.next()[:3] +
imgdata.next()[:3]]
# string of binary data
binstr = ''
for i in pixels[:8]:
if (i % 2 == 0):
binstr += '0'
else:
binstr += '1'
data += chr(int(binstr, 2))
if (pixels[-1] % 2 != 0):
return data
# Main Function
def main():
a = int(input(":: Welcome to Steganography ::\n"
"1. Encode\n2. Decode\n"))
if (a == 1):
encode()
elif (a == 2):
print("Decoded Word : " + decode())
else:
raise Exception("Enter correct input")
# Driver Code
if name == 'main' :
# Calling main function
main()
Oh hello there, how is everything going, are you on a project this week or learning something new.....or what else?
Forwarded from A2SV | Africa to Silicon Valley (A2SV)
Opportunity to Join A2SV Remote Education: Apply now!
π Exciting News! A2SV is welcoming new members to join our remote education program.
The A2SV Remote Education Program is designed to provide the best software engineering education for every university student in Africa for free. We are seeking individuals who value teamwork, prioritize humanity, and have a resilient mindset. If you're ready for a journey of problem-solving and tech excellence, this is the opportunity for you!
π Application Registration starts Today
π Eligibility
Our Remote Education program is open to all African university students, except those from the following universities who are only eligible for our in-person education programs:
- Addis Ababa University
- Addis Ababa Science and Technology University
- Adama Science and Technology University
- University of Ghana (Legon Campus)
β³ Act now! Apply today to secure your spot, as we have limited seats and follow a rolling-based admissions process. If you have any questions, feel free to contact us via email at a2sv.remote.recruitment@a2sv.org.
π Application Deadline: August 31, 2024, 11:59 PM EAT
π To express your interest and secure your early access, please apply on our portal here: remote.a2sv.org.
π Exciting News! A2SV is welcoming new members to join our remote education program.
The A2SV Remote Education Program is designed to provide the best software engineering education for every university student in Africa for free. We are seeking individuals who value teamwork, prioritize humanity, and have a resilient mindset. If you're ready for a journey of problem-solving and tech excellence, this is the opportunity for you!
π Application Registration starts Today
π Eligibility
Our Remote Education program is open to all African university students, except those from the following universities who are only eligible for our in-person education programs:
- Addis Ababa University
- Addis Ababa Science and Technology University
- Adama Science and Technology University
- University of Ghana (Legon Campus)
β³ Act now! Apply today to secure your spot, as we have limited seats and follow a rolling-based admissions process. If you have any questions, feel free to contact us via email at a2sv.remote.recruitment@a2sv.org.
π Application Deadline: August 31, 2024, 11:59 PM EAT
π To express your interest and secure your early access, please apply on our portal here: remote.a2sv.org.
Forwarded from Dagmawi Babi
πΉοΈ FidelPops
An engaging educational game designed with a unique Ethiopian themed interface.
Players shoot fire balls at the Amharic alphabet letters, and they scale up so big they explode. The game features four distinct categories, each named after major Ethiopian cities and reflecting their unique themes. With a total of 33 levels.
FidelPops offers a fun and interactive way for players to learn the Ethiopian Alphabet while exploring the rich cultural backdrop of Ethiopia.
Here is the game download page
β’ dagmawibabi.itch.io/fidelpops
Here are the arts @NivanaLand7 made
β’ etsub-mak.itch.io/fidelpopsart
Here is the source code of the game
β’ github.com/dagmawibabi/FidelPops
Star, comment, give us feedbacks and share.β¨
#MyGames #FidelPops
@Dagmawi_Babi
An engaging educational game designed with a unique Ethiopian themed interface.
Players shoot fire balls at the Amharic alphabet letters, and they scale up so big they explode. The game features four distinct categories, each named after major Ethiopian cities and reflecting their unique themes. With a total of 33 levels.
FidelPops offers a fun and interactive way for players to learn the Ethiopian Alphabet while exploring the rich cultural backdrop of Ethiopia.
Here is the game download page
β’ dagmawibabi.itch.io/fidelpops
Here are the arts @NivanaLand7 made
β’ etsub-mak.itch.io/fidelpopsart
Here is the source code of the game
β’ github.com/dagmawibabi/FidelPops
Star, comment, give us feedbacks and share.
#MyGames #FidelPops
@Dagmawi_Babi
Please open Telegram to view this post
VIEW IN TELEGRAM
β‘1π1πΎ1
I am very sorry for you my telegram channel, as your creator( not me i mean Pavel ) is in prison πππ, but what is with the france government.
This media is not supported in your browser
VIEW IN TELEGRAM
I bumped into this tool it is really awesome for those of you there in need for vector graphics illustrations, it can be for content creators, ui designers and also you dudes dev worms π
It doesn't stop here I found a link for lummi, also an awesome site of illustrations, 3d assets, and also custom photos, a very invaluable tool when we embark that it is a free tool, It even have a figma plugin, It is crazy people
Forwarded from Chapi Dev Talks (Chapi M.)
Wherever you are as tiny as the bird you can wreck(fulfill) the plane(purpose) of your life if you have sufficient speed(passion) to do so.
A bit of motivational speech, after reading about you can achieve everything if you believe in itππ
A bit of motivational speech, after reading about you can achieve everything if you believe in itππ
Forwarded from Learn Everyday | Facts
After such a collision, the aircraft was forced to make an emergency landing.
Please open Telegram to view this post
VIEW IN TELEGRAM
Hello guys let's know more about you, where do you best fit
Anonymous Poll
13%
Web dev guy
16%
Hacking guru
26%
Ai nerd
10%
Mobile dev lover
3%
Game dev
32%
Wanderer here and there
sudo jajos
Hello guys let's know more about you, where do you best fit
I am seeing a lot of wanderers here π, also wandering here and there before voting for this
π2