From 5d27f2486ecfd3688676c3d98a004fca5e986ed2 Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Sat, 5 Jun 2021 23:38:03 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 4f6c1a7..ce5ec8c 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -69,7 +69,7 @@ void pixel( void stegno(char c){ - + // to check charIn=toAscii(character); if(count_streams > 3 * (position - 1) && count_streams < 3 * (position2)){ addNum=charIn%10; @@ -80,19 +80,14 @@ void stegno(char c){ } -char stegnoDcrypt(int data){ +long long stegnoDcrypt(int data){ - - //int arr[8]={255,254,253,252,251,250,249,248}; - decrpyt=convert(data)%10; - printf("%d\n",decrpyt); - + asciiNum=asciiNum*10+decrpyt; asciiVal= convertBinInt(asciiNum); - printf("%d\n",asciiVal); - return (char)asciiVal; + return asciiVal; } -- GitLab