-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinterface.cpp
More file actions
48 lines (46 loc) · 1.02 KB
/
Copy pathinterface.cpp
File metadata and controls
48 lines (46 loc) · 1.02 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
#include "simpleLSB.h"
int main()
{
int choice,type;
char inp[100],secret[100];
printf("what would you like to hide?\n1.text\n2.image\n ");
scanf(" %d",&type);
if(type==1)
{
printf("enter choice.\n1.encode\n2.decode\n");
scanf(" %d",&choice);
if(choice==1)
{
printf("cover image file name? ");
scanf(" %[^\n]s",inp);
printf("enter secret message: ");
scanf(" %[^\n]s",secret);
text_encode(inp,secret);
}
else if(choice==2)
{
text_decode("textstego_simple.png");
}
else printf("enter correct choice.\n");
}
else if (type==2)
{
printf("enter choice.\n1.encode\n2.decode\n");
scanf(" %d",&choice);
if(choice==1)
{
printf("cover image file name? ");
scanf(" %[^\n]s",inp);
printf("enter secret image file name: ");
scanf(" %[^\n]s",secret);
im_encode(inp,secret);
}
else if(choice==2)
{
im_decode("stegoimage_simple.png");
}
else printf("enter correct choice.\n");
}
else printf("enter correct choice.");
return 0;
}