Caesar Cipher Decryption
//Program for password decryption using Caesar cipher. (Receiver side) #include<stdio.h> #include<string.h> int main() { char password[20]; int i, len=0; printf("Enter your encrypted password:"); scanf("%s",password); len = strlen(password); printf("Your decrypted password is: "); for(i=0; i<len; i++) printf("%c",password[i]-3); return 0; }
Output of the program
Enter your encrypted password:DEFG Your decrypted password is: ABCD
error strlen should have prototype
ReplyDeleteThanks for updates. Header file added in the code.
Delete