Skip to content

Commit e3ed8e0

Browse files
committed
feat: Added steganography project
1 parent 187027a commit e3ed8e0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Img-Steganograpy/main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from stegano import lsbset
2+
from stegano.lsbset import generators
3+
4+
# Hide the message in the image
5+
flag="This is sample text msg!"
6+
lets=lsbset.hide("./test.png",flag,generators.eratosthenes())
7+
lets.save("steg.png")
8+
9+
# Show the message from the image
10+
f=open("steg.png","rb")
11+
lsbset.reveal(f,generators.eratosthenes())

0 commit comments

Comments
 (0)