[DGD]Translating characters

Jman77777 at aol.com Jman77777 at aol.com
Tue Dec 28 20:19:53 CET 1999


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)]; 

Regards,

Jon

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list