You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
18
18
-[How to Create a Reverse Shell in Python](https://www.thepythoncode.com/article/create-reverse-shell-python). ([code](ethical-hacking/reverse_shell))
19
19
-[How to Encrypt and Decrypt Files in Python](https://www.thepythoncode.com/article/encrypt-decrypt-files-symmetric-python). ([code](ethical-hacking/file-encryption))
20
20
-[How to Make a Subdomain Scanner in Python](https://www.thepythoncode.com/article/make-subdomain-scanner-python). ([code](ethical-hacking/subdomain-scanner))
21
+
-[How to use Steganography to Hide Secret Data in Images in Python](https://www.thepythoncode.com/article/hide-secret-data-in-images-using-steganography-python). ([code](ethical-hacking/steganography))
# [How to use Steganography to Hide Secret Data in Images in Python](https://www.thepythoncode.com/article/hide-secret-data-in-images-using-steganography-python)
2
+
To run this:
3
+
-`pip3 install -r requimements.txt`
4
+
- To encode some data to the imag `image.PNG` and decode it right away:
5
+
```
6
+
python steganography image.PNG "This is some secret data."
7
+
```
8
+
This will write another image with data encoded in it and **outputs:**
9
+
```
10
+
[*] Maximum bytes to encode: 125028
11
+
[*] Encoding data...
12
+
[+] Decoding...
13
+
[+] Decoded data: This is some secret data.
14
+
```
15
+
- You can isolate encoding and decoding processes in two different Python files, which makes more sense.
0 commit comments