[DGD]Translating characters
Frantisek Fuka
fuxoft at terminal.cz
Tue Dec 28 20:36:04 CET 1999
Jman77777 at aol.com wrote:
>
> Check into using XOR I suppose. It isn't exactly a very strong algorithm to
> do encryption and decryption by, but the same algorithm both encrypts and
> decrypts strings. Here is an example:
>
> strcpy(key, "encryptionkey");
>
> for(i = 0; i < strlen(strings); i++)
> strings[i] ^= key[i % strlen(key)];
Either I'm very stupid or you misunderstood what I wanted to do. :)
--
Frantisek Fuka
(yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
My E-mail: fuxoft at terminal.cz
My Homepage: http://www.fuxoft.cz
My ICQ: 2745855
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list