Hello All :
I tried to write a simple program in C++ for encrypt a word using a keyword and a key depending on an alphabet ,for example
keyword:HELO
Key : D
I want to genrate the cipher alphabet by puts the positions of letters of the keyword(HELO)
in the cipher alphabet & must be instead of the position of the Key(D) in the orginal alphabet. and then resume the other letters that not exist in the keyword put these letters
in the cipher alphabet too ....
ABC DEFG HIJKLMNOPQRSTUVWXYZ (English alpabet)
XYZ HELO ABCDFGHIJKMNPQRSTUV (cipher alphabet)
I tried to enter the alphabet
int y=0;
for(int x='a';x<='z';x++){
en[y]=x;
cout<<en[y];
y++;
}
puts("Enter the keyword");
gets(keyw);
puts("Enter the key");
gets(k);
// until know it's OK, but I don't how to generate the cipher alphabet.....
Thanks in advance......