-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hide-my-data.py
29 lines (25 loc) · 1.1 KB
/
Hide-my-data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
import shutil
def banner():
print("----------------------------------")
print("Visit me in GitHub!--->Amir-Shamsi")
print("----------------------------------")
banner()
cmd = input("Enter 1 if you wanna extract hidden files or 2 to hide your files behind a picture: ")
while cmd not in ("1", "2"):
cmd = input("Please enter a valuable input!: ")
if cmd == "2":
try:
info_FN = input("Enter Your Info Directory FullName: ")
pic_FN = input("Enter Your Picture FullName: ")
shutil.make_archive("zipped_info", 'zip', info_FN)
command = "cmd /c " + '"' + "Copy /b " + pic_FN + " + " + "zipped_info.zip" + " " + "Hidden.jpg" + '"'
os.system(command)
os.remove("zipped_info.zip")
print("Your file created az an image! the name is", "Hidden.jpg")
except:
print("can't find information directory or picture!")
else:
hdn_file = input("Enter Your Picture FullName: ")
os.rename(hdn_file, hdn_file.split(".")[0] + ".zip")
print("Now ready your zipped info:", hdn_file.split(".")[0] + ".zip")