MR. THE KEY AFFECTS HOW THE MESSAGE WILL BE ENCRYPT
AND THE "I LOVE YOU" IS FROM THE USER INPUT AND ALSO THE "KEY"
EXAMPLE :
How is the plaintext string enciphered?
THE PLAINTEXT STRING will be ENCIPHER because of the password serves as a KEY.
example:
the user input message to encrypt "I LOVE YOU" and the password is "LOVE.
to encrypt our first letter in message is "I" and the first letter in our pass is "L" the program will stop in letter "L"
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
@@@@@@@,,,A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
soln. I=A since the program will stop in letter "L" because of the password. A-L. the letter "I" will be encipher to letter "T" because letter T stop on L.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
@@@@@@@@@@,,A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
*same as the second letter of the message and the password.
"L"is our 2nd letter of our message and "O" is our 2nd letter of our password.
L=A, the program will stop in letter "O" and the letter "Z" is the encrypt of the letter L because O is stop on the letter "Z"
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>"How is the ciphertext deciphered?"
same solution to the ENCIPHER BUT ITS BACKWARD.
THE ENCRYPTED MESSAGE IS "T ZJZP MJY and our password is same "LOVE"
@@@@@@,A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
since out 1st letter is "T" and the 1st letter of pass. is "L". T=A and it will stop in letter L backward, so that the decrypt of "T" is "I" because L stop on the letter "I"
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
same as the 2nd letter "Z" and the 2nd letter of our pass is "O". Z=A and it will stop in the letter O. so that the decrypt of letter "Z" is "L" because O stop in letter "L".
did you get my post?
IF YOU CAN MINIMIZE THE LINE OF THE CODES. CAN U CHANGE IT? PLEASE BECAUSE THAT CODES IS HARD TO EXPLAIN.. BY THE WAY THANK YOU FOR HELPING ME.. FOR THIS CODE.
these our compiler that we use:
http://sourceforge.net/projects/orwelldevcpp/