# Encryption

Email
 Submitted on: 1/2/2015 7:06:00 AM By: Deepti Kotnis (from psc cd) Level: Beginner User Rating: By 3 Users Compatibility: C, C++ (general), Microsoft Visual C++, Borland C++, UNIX C++ Views: 864

This code implements 3 encryption algorithms one after another i.e. 3 level encryption is achieved. 3 Algorithms used are: 1.Reversing Algorithm 2.Grille's Method 3.Word-Alphabet Correlation Algorithm

### INCLUDE files:

Can't Copy and Paste this?
 ```//************************************** //INCLUDE files for :Encryption //************************************** #include #include ```
code:
Can't Copy and Paste this?
 ``` //************************************** // Name: Encryption // Description:This code implements 3 encryption algorithms one after another i.e. 3 level encryption is achieved. 3 Algorithms used are: 1.Reversing Algorithm 2.Grille's Method 3.Word-Alphabet Correlation Algorithm // By: Deepti Kotnis (from psc cd) // // Inputs:Enter any word or phrase without any white spaces containing only lowercase letters for best results. // // Returns:Gives you back the word/phrase entered in the encrypted format. //************************************** #include #include void Encryption(char *originalStr); void Decryption(int *encrypt,int origlen,int encryptlen); #define kEncryptionKey 3 char GrillArray[2][100],phrase[] = {"the quick brown fox jumps over the lazy dog"}; int grilllen = 0; int main (void) { char originalStr[100]; printf("please enter a word or phrase without any white spaces containing only lowercase characters(a-z):"); scanf("%s",originalStr); Encryption(originalStr); return 0; } void Encryption(char *originalStr) { char rev[100],grill[100]; int encrypt[100]; int choice = 0,origlen = strlen(originalStr); int i,k,l,m=0,index=0,wordCnt=0,letterCnt=0; k = strlen(originalStr)-1; for(i=0;i

Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)