-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPxlcrypt.sh
More file actions
57 lines (38 loc) · 1.33 KB
/
Pxlcrypt.sh
File metadata and controls
57 lines (38 loc) · 1.33 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
mybanner(){
echo " __ ___ __ __ __ ___ "
echo " |__) | \_/ |__ | / ' |__) \ / |__) | "
echo " | | / \ |___ |___ \__, | \ | | | "
echo ""
echo " Welcome To PiXeL CrYpT "
echo ""
}
condition() {
read -p "Do you want to hide any file in an image file? (y/n): " ans
if [ "$ans" = 'y' ]; then
read -p "Enter you zip file path: " zip
if [[ "$zip" == *.zip ]]; then
read -p "Enter your Image file path: " img
if [[ "$img" == *.png || "$img" == *jpg || "$img" == *jpeg || "$img" == *gif ]]; then
read -p "Enter save file name : " save
if [[ "$save" == *.png || "$save" == *jpg || "$save" == *jpeg || "$save" == *gif ]]; then
cat $img $zip > $save
else
echo "Save file name must be end with .imageExtension's"
fi
else
echo "Please enter correct image file path"
fi
else
echo "Please enter correct zip file path"
fi
elif [ "$ans" = 'n' ]; then
echo "Okay, goodbye!"
else
echo "Goodbye!"
fi
}
chmod 777 *
./versionck.sh
mybanner
condition