<mosaic.cnfolio.com>
PROGRAM
  1. -------------------------------------------- PSEUDO CODE ------------------------------------------------------------
  2. /*START*/
  3. /*Please the length of the cipher key*/
  4. /*Please enter the cipher key text*/
  5. /*Please enter the length of the plain text*/
  6. /*The character that is created in the position N within the cipher key is the target value/*
  7. /*The character that is established in in N+1 within the cipher key is the substituted value/*
  8. /*IF the letter is found in the string*/
  9. /*THEN substitute the value*/
  10. /*IF the character cannot be found in the string*/
  11. /*THEN the current value cannot be substituted*/
  12. /*Display encrypted value*/
  13. /*END*/
  14.  
  15. ---------------------------------------------- START OF THE PROGRAMME -----------------------------------------------
  16. #include <stdio.h>
  17. #include <string.h>
  18.  
  19.  int main( void )
  20. {
  21. int f,i; /* in this line i am setting the variables*/
  22. char key [16]; /*this line is allowing me to store 16 characters in to the array called str*/
  23. char data[256];
  24.  
  25. clrscr(); /* the clrscr(); function is used to clear the console screen*/
  26. printf("/nPlease type in the length of the cipher key"); /*in this line i am using the printf function to display the output*/
  27. int x;
  28. gets(data);
  29.  
  30.  
  31. printf("/n Please enter the length of the plain text"); /*I am using the printf function to display the output*/
  32. for(f=0;f<strlen;f++)
  33. if(f==x-1)
  34. char to key =[0];
  35. else
  36. char to key =[f=f+1];
  37. for i=0;z<d++