EmbLogic's Blog

Multiple data compression and encryption using iterative technique.

 

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
It includes all the header files.
----------------------------
revision 1.1	locked by: root;
date: 2015/02/05 18:21:25;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.4
branch:
locks: strict
	root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;	selected revisions: 4
description:
It is a program for multiple data compression and encryption using iterative technique.
----------------------------
revision 1.4	locked by: root;
date: 2015/02/05 18:32:29;  author: root;  state: Exp;  lines: +16 -1
Here i have created a master array in which i have copied the content of a file.
This array is created using the pointers.
Initially the memory is allocated using malloc for only the first character .
Then the memory for each new character is allocated using realloc.
----------------------------
revision 1.3
date: 2015/02/05 18:26:36;  author: root;  state: Exp;  lines: +12 -1
Read the characters one by one from a file using 'read' function.
For reading the characters one by one while loop is used in which only one character is read at a time and the loop will continue until all the characters are read from a file.
----------------------------
revision 1.2
date: 2015/02/05 18:24:10;  author: root;  state: Exp;  lines: +14 -2
Now i have opened a file in a read only mode using 'open' function and command line arguments.
----------------------------
revision 1.1
date: 2015/02/05 18:21:25;  author: root;  state: Exp;
Initial revision
=============================================================================

 

Posted in Uncategorized | Leave a comment

Multiple Data Compression ( Find the number of bits compressed using malloc and rellaoc)

RCS file: mdc.c,v
Working file: mdc.c
head: 1.11
branch:
locks: strict
vishal: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11;    selected revisions: 11
description:
open the present file
And read the number of character in the file
This is done by using “header.h”
—————————-
revision 1.11    locked by: vishal;
date: 2015/02/05 14:52:19;  author: vishal;  state: Exp;  lines: +1 -1
correction of semicolon
—————————-
revision 1.10
date: 2015/02/05 14:51:17;  author: vishal;  state: Exp;  lines: +19 -3
Find the number of bits data compressed by using if else ladder instead of while loop
—————————-
revision 1.9
date: 2015/02/05 14:43:55;  author: vishal;  state: Exp;  lines: +1 -1
Find the number of bits data compressed
this is find by using for loop
—————————-
revision 1.8
date: 2015/02/05 14:24:33;  author: vishal;  state: Exp;  lines: +20 -11
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/05 12:16:36;  author: vishal;  state: Exp;  lines: +17 -5
Compress the data by using for loop
print the number of character after comprassion
—————————-
revision 1.6
date: 2015/02/05 10:47:49;  author: vishal;  state: Exp;  lines: +16 -7
correct of argv in “”
print the array save in the pointer
—————————-
revision 1.5
date: 2015/02/05 09:16:29;  author: vishal;  state: Exp;  lines: +1 -1
correction if statement
—————————-
revision 1.4
date: 2015/02/05 09:14:35;  author: vishal;  state: Exp;  lines: +2 -1
correction of malloc
print the copied string
—————————-
revision 1.3
date: 2015/02/05 09:05:38;  author: vishal;  state: Exp;  lines: +17 -4
Store the data in the file in new pointer *ma
By using realloc
—————————-
revision 1.2
date: 2015/02/05 08:02:53;  author: vishal;  state: Exp;  lines: +4 -4
This just the updatation of rcs file
—————————-
revision 1.1
date: 2015/02/04 18:15:38;  author: vishal;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Able to compress the data, calculate the distinct character and able to define how many bits is required for compressed data

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.11
branch:
locks: strict
	root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11;	selected revisions: 11
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.11	locked by: root;
date: 2015/02/05 14:40:28;  author: root; 
state: Exp;  lines: +30 -1
Design the logic for how many data bits are
required for compressed data
by using if else condition
----------------------------
revision 1.10
date: 2015/02/05 13:47:56;  author: root; 
state: Exp;  lines: +3 -2
Now, count the number of compressed character
----------------------------
revision 1.9
date: 2015/02/05 13:39:25;  author: root; 
state: Exp;  lines: +1 -1
introduce break in flag = 0.
----------------------------
revision 1.8
date: 2015/02/05 13:30:27;  author: root; 
state: Exp;  lines: +21 -10
Now able to compress the data in datain_file

read data from file and compare it with master
array
introduce flags
----------------------------
revision 1.7
date: 2015/02/05 11:56:06;  author: root; 
state: Exp;  lines: +4 -4
modified the program just change the value of
charc
change the malloc arguement
----------------------------
revision 1.6
date: 2015/02/05 11:32:07;  author: root; 
state: Exp;  lines: +19 -18
Introduce malloc and realloc function
read character one by one and realloc the memory
successfully
introduce master array and print string on
display
----------------------------
revision 1.5
date: 2015/02/05 10:47:13;  author: root; 
state: Exp;  lines: +1 -1
change the format specifier in argv1
----------------------------
revision 1.4
date: 2015/02/05 10:46:12;  author: root; 
state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2015/02/05 10:43:10;  author: root; 
state: Exp;  lines: +25 -8
*** empty log message ***
----------------------------
revision 1.2
date: 2015/02/05 08:25:39;  author: root; 
state: Exp;  lines: +7 -2
just checking the arguement
----------------------------
revision 1.1
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================
Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Created Master Array and calculated code length for mdcaeuit

RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
included base header file stdio.h
—————————-
revision 1.3    locked by: root;
date: 2015/02/02 09:24:15;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/02/02 09:19:50;  author: root;  state: Exp;  lines: +2 -0
included stdio.h and fcntl.h
—————————-
revision 1.1
date: 2015/02/02 09:15:02;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcauit.c,v
Working file: mdcauit.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;    selected revisions: 9
description:
This is main program
Multilple data compression and encryption using iterative technique.
—————————-
revision 1.9    locked by: root;
date: 2015/02/02 10:09:12;  author: root;  state: Exp;  lines: +7 -2
creating master array and writing into it character by character
—————————-
revision 1.8
date: 2015/02/02 09:44:52;  author: root;  state: Exp;  lines: +5 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:42:53;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/02/02 09:39:46;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:37:28;  author: root;  state: Exp;  lines: +1 -1
modifying to read character from textfile.
—————————-
revision 1.4
date: 2015/02/02 09:35:04;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 09:33:13;  author: root;  state: Exp;  lines: +8 -2
reading from text file.
—————————-
revision 1.2
date: 2015/02/02 09:25:41;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/02/02 09:14:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcauit.c,v
Working file: mdcauit.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13;    selected revisions: 13
description:
This is main program
Multilple data compression and encryption using iterative technique.
—————————-
revision 1.13    locked by: root;
date: 2015/02/05 11:59:27;  author: root;  state: Exp;  lines: +55 -25
implemented master array.
calculated code length.
—————————-
revision 1.12
date: 2015/02/05 09:08:30;  author: root;  state: Exp;  lines: +25 -13
now we are inserting distinct characters in master array.
—————————-
revision 1.11
date: 2015/02/05 07:23:42;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/02/05 07:18:04;  author: root;  state: Exp;  lines: +14 -7
*** empty log message ***
—————————-
revision 1.9
date: 2015/02/02 10:09:12;  author: root;  state: Exp;  lines: +7 -2
creating master array and writing into it character by character
—————————-
revision 1.8
date: 2015/02/02 09:44:52;  author: root;  state: Exp;  lines: +5 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:42:53;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/02/02 09:39:46;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:37:28;  author: root;  state: Exp;  lines: +1 -1
modifying to read character from textfile.
—————————-
revision 1.4
date: 2015/02/02 09:35:04;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 09:33:13;  author: root;  state: Exp;  lines: +8 -2
reading from text file.
—————————-
revision 1.2
date: 2015/02/02 09:25:41;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/02/02 09:14:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
included base header file stdio.h
—————————-
revision 1.6    locked by: root;
date: 2015/02/05 12:00:24;  author: root;  state: Exp;  lines: +1 -0
declared the prototype of unique function.
—————————-
revision 1.5
date: 2015/02/05 07:22:43;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/05 07:20:30;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 09:24:15;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/02/02 09:19:50;  author: root;  state: Exp;  lines: +2 -0
included stdio.h and fcntl.h
—————————-
revision 1.1
date: 2015/02/02 09:15:02;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Created Master Array and Calculated Code Length for mdcaeuit by using functions

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
	root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;	selected revisions: 2
description:
in this we have included base header file stdio.h
----------------------------
revision 1.2	locked by: root;
date: 2015/02/02 09:20:19;  author: root;  state: Exp;  lines: +2 -1
In this we have included two header files 
i.e
stdlib.h nd fcntl.h
----------------------------
revision 1.1
date: 2015/02/02 09:14:53;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcaeuit.c,v
Working file: mdcaeuit.c
head: 1.9
branch:
locks: strict
	root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;	selected revisions: 9
description:
In this program, multiple files are compressed nd encrypted by using iterative technique
----------------------------
revision 1.9	locked by: root;
date: 2015/02/02 10:14:01;  author: root;  state: Exp;  lines: +3 -1
*** empty log message ***
----------------------------
revision 1.8
date: 2015/02/02 10:09:30;  author: root;  state: Exp;  lines: +6 -2
created the master array 
allocated the memory nd then reallocated it by using ndc variable 
basically we r writing character by character into the master array i.e ma
----------------------------
revision 1.7
date: 2015/02/02 09:48:27;  author: root;  state: Exp;  lines: +4 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2015/02/02 09:43:19;  author: root;  state: Exp;  lines: +3 -0
just added break 
;
----------------------------
revision 1.5
date: 2015/02/02 09:41:34;  author: root;  state: Exp;  lines: +1 -1
just added ch
----------------------------
revision 1.4
date: 2015/02/02 09:39:45;  author: root;  state: Exp;  lines: +1 -1
added \n 
;
----------------------------
revision 1.3
date: 2015/02/02 09:37:32;  author: root;  state: Exp;  lines: +2 -1
we have printed the character instead of count
----------------------------
revision 1.2
date: 2015/02/02 09:33:10;  author: root;  state: Exp;  lines: +9 -2
now we are Reading the no of bytes containing the textfile
----------------------------
revision 1.1
date: 2015/02/02 09:14:36;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcaeuit.c,v
Working file: mdcaeuit.c
head: 1.12
branch:
locks: strict
	root: 1.12
access list:
symbolic names:
keyword substitution: kv
total revisions: 12;	selected revisions: 12
description:
In this program, multiple files are compressed nd encrypted by using iterative technique
----------------------------
revision 1.12	locked by: root;
date: 2015/02/05 11:59:21;  author: root;  state: Exp;  lines: +59 -26
inplemented master array 
calculated code length 
by using unique function
----------------------------
revision 1.11
date: 2015/02/05 09:08:19;  author: root;  state: Exp;  lines: +17 -9
nw we r inserting distinct characters into the master array.
by introducing flags .
----------------------------
revision 1.10
date: 2015/02/05 07:18:09;  author: root;  state: Exp;  lines: +4 -0
*** empty log message ***
----------------------------
revision 1.9
date: 2015/02/02 10:14:01;  author: root;  state: Exp;  lines: +3 -1
*** empty log message ***
----------------------------
revision 1.8
date: 2015/02/02 10:09:30;  author: root;  state: Exp;  lines: +6 -2
created the master array 
allocated the memory nd then reallocated it by using ndc variable 
basically we r writing character by character into the master array i.e ma
----------------------------
revision 1.7
date: 2015/02/02 09:48:27;  author: root;  state: Exp;  lines: +4 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2015/02/02 09:43:19;  author: root;  state: Exp;  lines: +3 -0
just added break 
;
----------------------------
revision 1.5
date: 2015/02/02 09:41:34;  author: root;  state: Exp;  lines: +1 -1
just added ch
----------------------------
revision 1.4
date: 2015/02/02 09:39:45;  author: root;  state: Exp;  lines: +1 -1
added \n 
;
----------------------------
revision 1.3
date: 2015/02/02 09:37:32;  author: root;  state: Exp;  lines: +2 -1
we have printed the character instead of count
----------------------------
revision 1.2
date: 2015/02/02 09:33:10;  author: root;  state: Exp;  lines: +9 -2
now we are Reading the no of bytes containing the textfile
----------------------------
revision 1.1
date: 2015/02/02 09:14:36;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
	root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;	selected revisions: 3
description:
in this we have included base header file stdio.h
----------------------------
revision 1.3	locked by: root;
date: 2015/02/05 12:00:30;  author: root;  state: Exp;  lines: +1 -0
added the decleration or prototype of unique function
----------------------------
revision 1.2
date: 2015/02/02 09:20:19;  author: root;  state: Exp;  lines: +2 -1
In this we have included two header files 
i.e
stdlib.h nd fcntl.h
----------------------------
revision 1.1
date: 2015/02/02 09:14:53;  author: root;  state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment

Read from file and store into master array.

RCS file: mdc.c,v
Working file: mdc.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
This is the base file for mdc project….
—————————-
revision 1.2 locked by: root;
date: 2015/02/05 10:46:55; author: root; state: Exp; lines: +16 -9
Here after opening the file…the file data is stored in a master array and array is printed…
master array is declared using concept of pointer and malloc.
memory is allocated dynamically using realloc().
—————————-
revision 1.1
date: 2015/02/05 08:05:18; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this is the base header file..
—————————-
revision 1.1 locked by: root;
date: 2015/02/05 08:05:18; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption, Uncategorized | Leave a comment

Give the memory and display the data using malloc and realloc function in MDC

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.7
branch:
locks: strict
	root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7;	selected revisions: 7
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.7	locked by: root;
date: 2015/02/05 11:56:06;  author: root; 
state: Exp;  lines: +4 -4
modified the program just change the value of
charc
change the malloc arguement
----------------------------
revision 1.6
date: 2015/02/05 11:32:07;  author: root; 
state: Exp;  lines: +19 -18
Introduce malloc and realloc function
read character one by one and realloc the memory
successfully
introduce master array and print string on
display
----------------------------
revision 1.5
date: 2015/02/05 10:47:13;  author: root; 
state: Exp;  lines: +1 -1
change the format specifier in argv1
----------------------------
revision 1.4
date: 2015/02/05 10:46:12;  author: root; 
state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.3
date: 2015/02/05 10:43:10;  author: root; 
state: Exp;  lines: +25 -8
*** empty log message ***
----------------------------
revision 1.2
date: 2015/02/05 08:25:39;  author: root; 
state: Exp;  lines: +7 -2
just checking the arguement
----------------------------
revision 1.1
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  author: root; 
state: Exp;
Initial revision
=============================================================================
Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Master array created for Multiple Data Compression(MDC)

RCS file: mdc.c,v
Working file: mdc.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
opened a file
—————————-
revision 1.6    locked by: root;
date: 2015/02/05 08:25:21;  author: root;  state: Exp;  lines: +2 -2
inserted ; before if statement.
—————————-
revision 1.5
date: 2015/02/05 08:23:22;  author: root;  state: Exp;  lines: +2 -2
modified/ correction of errors
—————————-
revision 1.4
date: 2015/02/05 08:17:39;  author: root;  state: Exp;  lines: +39 -3
raed the characters from text file one by one.
now put the characters in a master arry
—————————-
revision 1.3
date: 2015/02/05 07:46:07;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/02/05 07:44:45;  author: root;  state: Exp;  lines: +1 -1
modify the open command
—————————-
revision 1.1
date: 2015/02/05 07:36:26;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Completed Unique Character Function in MDC

RCS file: mdc.c,v
Working file: mdc.c
head: 1.18
branch:
locks: strict
	root: 1.18
access list:
symbolic names:
keyword substitution: kv
total revisions: 18;	selected revisions: 18
description:
This is the main program for MULTIPLE DATA COMPRESSION AND ENCRYPTION USING ITTERATIVE TECHNIQUE
Reading from text file character by character
----------------------------
revision 1.18	locked by: root;
date: 2015/02/05 08:13:54;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
----------------------------
revision 1.17
date: 2015/02/05 08:12:44;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.16
date: 2015/02/05 08:12:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.15
date: 2015/02/05 08:10:19;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
----------------------------
revision 1.14
date: 2015/02/05 08:08:21;  author: root;  state: Exp;  lines: +17 -1
added codelength function
----------------------------
revision 1.13
date: 2015/02/05 07:59:53;  author: root;  state: Exp;  lines: +2 -0
..
----------------------------
revision 1.12
date: 2015/02/05 07:53:14;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.11
date: 2015/02/05 07:52:36;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.10
date: 2015/02/05 07:50:53;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.9
date: 2015/02/05 07:45:29;  author: root;  state: Exp;  lines: +30 -5
Addded Unique character function
Created master array
----------------------------
revision 1.8
date: 2015/02/02 09:36:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.7
date: 2015/02/02 09:33:22;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2015/02/02 09:32:50;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.5
date: 2015/02/02 09:31:51;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.4
date: 2015/02/02 09:30:46;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
----------------------------
revision 1.3
date: 2015/02/02 09:25:11;  author: root;  state: Exp;  lines: +20 -4
Creating master array of all the characters in the file
----------------------------
revision 1.2
date: 2015/02/02 08:52:02;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2015/02/02 08:45:47;  author: root;  state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment

Find the code length of master array.

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header file for mdc.c
—————————-
revision 1.1 locked by: root;
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
This is multiple data compression and encription using iterative techniqe project
open file text in rea.
—————————-
revision 1.6 locked by: root;
date: 2015/02/02 09:04:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:01:27; author: root; state: Exp; lines: +9 -4
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/02 08:59:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 08:55:44; author: root; state: Exp; lines: +8 -1
reading one character from file at a time and storing in array.
—————————-
revision 1.2
date: 2015/02/02 08:47:18; author: root; state: Exp; lines: +8 -0
argc is counted
—————————-
revision 1.1
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header file for mdc.c
—————————-
revision 1.1 locked by: root;
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is multiple data compression and encription using iterative techniqe project
open file text in rea.
—————————-
revision 1.9 locked by: root;
date: 2015/02/02 09:31:36; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.8
date: 2015/02/02 09:24:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:20:53; author: root; state: Exp; lines: +19 -5
creating master array
—————————-
revision 1.6
date: 2015/02/02 09:04:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:01:27; author: root; state: Exp; lines: +9 -4
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/02 08:59:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 08:55:44; author: root; state: Exp; lines: +8 -1
reading one character from file at a time and storing in array.
—————————-
revision 1.2
date: 2015/02/02 08:47:18; author: root; state: Exp; lines: +8 -0
argc is counted
—————————-
revision 1.1
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header file for mdc.c
—————————-
revision 1.1 locked by: root;
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
This is multiple data compression and encription using iterative techniqe project
open file text in rea.
—————————-
revision 1.13 locked by: root;
date: 2015/02/05 08:41:41; author: root; state: Exp; lines: +13 -1
find th code length.
—————————-
revision 1.12
date: 2015/02/05 08:18:17; author: root; state: Exp; lines: +1 -0
print the length of ma
—————————-
revision 1.11
date: 2015/02/05 08:15:37; author: root; state: Exp; lines: +2 -2
change ma to buff
—————————-
revision 1.10
date: 2015/02/05 08:13:17; author: root; state: Exp; lines: +10 -1
find the length of master array.
store master array into encrypt_key file.
—————————-
revision 1.9
date: 2015/02/02 09:31:36; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.8
date: 2015/02/02 09:24:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:20:53; author: root; state: Exp; lines: +19 -5
creating master array
—————————-
revision 1.6
date: 2015/02/02 09:04:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:01:27; author: root; state: Exp; lines: +9 -4
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/02 08:59:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 08:55:44; author: root; state: Exp; lines: +8 -1
reading one character from file at a time and storing in array.
—————————-
revision 1.2
date: 2015/02/02 08:47:18; author: root; state: Exp; lines: +8 -0
argc is counted
—————————-
revision 1.1
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption, Uncategorized | Leave a comment

just read data from file and print on display in MDC project

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
create a seperate header.h file to store header
file indiviually
access this header file in projectmdc.c file
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:15:02;  author: root; 
state: Exp;
Initial revision
=============================================================================

RCS file: projectmdc.c,v
Working file: projectmdc.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Introduce header.h file
create datain_file text file and open the
content through file decriptor
read the content from datain_file text file
Use the argc to count the no. of arguements
And argv to store the string in argv array
----------------------------
revision 1.1	locked by: root;
date: 2015/02/04 11:00:43;  author: root; 
state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment

Reading file in Multiple Data Compression Using Iterative Technique

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
	root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;	selected revisions: 2
description:
in this we have included base header file stdio.h
----------------------------
revision 1.2	locked by: root;
date: 2015/02/02 09:20:19;  author: root;  state: Exp;  lines: +2 -1
In this we have included two header files 
i.e
stdlib.h nd fcntl.h
----------------------------
revision 1.1
date: 2015/02/02 09:14:53;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcaeuit.c,v
Working file: mdcaeuit.c
head: 1.9
branch:
locks: strict
	root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;	selected revisions: 9
description:
In this program, multiple files are compressed nd encrypted by using iterative technique
----------------------------
revision 1.9	locked by: root;
date: 2015/02/02 10:14:01;  author: root;  state: Exp;  lines: +3 -1
*** empty log message ***
----------------------------
revision 1.8
date: 2015/02/02 10:09:30;  author: root;  state: Exp;  lines: +6 -2
created the master array 
allocated the memory nd then reallocated it by using ndc variable 
basically we r writing character by character into the master array i.e ma
----------------------------
revision 1.7
date: 2015/02/02 09:48:27;  author: root;  state: Exp;  lines: +4 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2015/02/02 09:43:19;  author: root;  state: Exp;  lines: +3 -0
just added break 
;
----------------------------
revision 1.5
date: 2015/02/02 09:41:34;  author: root;  state: Exp;  lines: +1 -1
just added ch
----------------------------
revision 1.4
date: 2015/02/02 09:39:45;  author: root;  state: Exp;  lines: +1 -1
added \n 
;
----------------------------
revision 1.3
date: 2015/02/02 09:37:32;  author: root;  state: Exp;  lines: +2 -1
we have printed the character instead of count
----------------------------
revision 1.2
date: 2015/02/02 09:33:10;  author: root;  state: Exp;  lines: +9 -2
now we are Reading the no of bytes containing the textfile
----------------------------
revision 1.1
date: 2015/02/02 09:14:36;  author: root;  state: Exp;
Initial revision
=============================================================================
Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment

Reading file in Multiple Data Compression Using Iterative Technique

RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
included base header file stdio.h
—————————-
revision 1.3    locked by: root;
date: 2015/02/02 09:24:15;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/02/02 09:19:50;  author: root;  state: Exp;  lines: +2 -0
included stdio.h and fcntl.h
—————————-
revision 1.1
date: 2015/02/02 09:15:02;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: mdcauit.c,v
Working file: mdcauit.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;    selected revisions: 9
description:
This is main program
Multilple data compression and encryption using iterative technique.
—————————-
revision 1.9    locked by: root;
date: 2015/02/02 10:09:12;  author: root;  state: Exp;  lines: +7 -2
creating master array and writing into it character by character
—————————-
revision 1.8
date: 2015/02/02 09:44:52;  author: root;  state: Exp;  lines: +5 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:42:53;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/02/02 09:39:46;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:37:28;  author: root;  state: Exp;  lines: +1 -1
modifying to read character from textfile.
—————————-
revision 1.4
date: 2015/02/02 09:35:04;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 09:33:13;  author: root;  state: Exp;  lines: +8 -2
reading from text file.
—————————-
revision 1.2
date: 2015/02/02 09:25:41;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/02/02 09:14:46;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Multiple Data Compression

RCS file: mdc.c,v
Working file: mdc.c
head: 1.8
branch:
locks: strict
	root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8;	selected revisions: 8
description:
This is the main program for MULTIPLE DATA COMPRESSION AND ENCRYPTION USING ITTERATIVE TECHNIQUE
Reading from text file character by character
----------------------------
revision 1.8	locked by: root;
date: 2015/02/02 09:36:01;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.7
date: 2015/02/02 09:33:22;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.6
date: 2015/02/02 09:32:50;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.5
date: 2015/02/02 09:31:51;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.4
date: 2015/02/02 09:30:46;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
----------------------------
revision 1.3
date: 2015/02/02 09:25:11;  author: root;  state: Exp;  lines: +20 -4
Creating master array of all the characters in the file
----------------------------
revision 1.2
date: 2015/02/02 08:52:02;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2015/02/02 08:45:47;  author: root;  state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment

I have created master array successfully

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header file for mdc.c
—————————-
revision 1.1 locked by: root;
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
This is multiple data compression and encription using iterative techniqe project
open file text in rea.
—————————-
revision 1.6 locked by: root;
date: 2015/02/02 09:04:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:01:27; author: root; state: Exp; lines: +9 -4
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/02 08:59:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 08:55:44; author: root; state: Exp; lines: +8 -1
reading one character from file at a time and storing in array.
—————————-
revision 1.2
date: 2015/02/02 08:47:18; author: root; state: Exp; lines: +8 -0
argc is counted
—————————-
revision 1.1
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
header file for mdc.c
—————————-
revision 1.1 locked by: root;
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: mdc.c,v
Working file: mdc.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is multiple data compression and encription using iterative techniqe project
open file text in rea.
—————————-
revision 1.9 locked by: root;
date: 2015/02/02 09:31:36; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.8
date: 2015/02/02 09:24:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/02/02 09:20:53; author: root; state: Exp; lines: +19 -5
creating master array
—————————-
revision 1.6
date: 2015/02/02 09:04:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/02/02 09:01:27; author: root; state: Exp; lines: +9 -4
*** empty log message ***
—————————-
revision 1.4
date: 2015/02/02 08:59:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/02/02 08:55:44; author: root; state: Exp; lines: +8 -1
reading one character from file at a time and storing in array.
—————————-
revision 1.2
date: 2015/02/02 08:47:18; author: root; state: Exp; lines: +8 -0
argc is counted
—————————-
revision 1.1
date: 2015/02/02 08:35:46; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment