KDevelop Data Encryption Routines

Michael Zell zhost at gmx.de
Tue Apr 4 10:39:53 BST 2000


On Sun, 2 Apr 2000, _Usul John Obscurant wrote:
(snip)
> - --- snip ---
> char * password;
> char * text;
> int i, j;
> // get password and text here
> for(i=0, j=0; i < strlen(text); i++, j++)
> {
> if(j >= strlen(password)) j = 0;
> text[i] = text[i] | password[i];
> }
> - --- snip ---
just a little comment - xor is ^ and not | :) - by the way, it's kinda
more elegant using two char * instead of those i and j, but that's
personal taste :)
 
> btw - a friend of mine (his name's michael zell, email zhost at gmx.de) has
> written a program like this, he's also member of this mailing-list ... you
> might ask him for the sources ...
oh, that old program? oops, it doesn't look very nice at all, my
programming knowledge improved since i wrote this program and now its
sources look horrible for me :) - but anyway, if anyone is interested in
it

> (michael, hope you don't mind giving your address to other people ;)
hm ... do what you want (that's what you do anyway, i know) ;)

michael

--
zhost
zhost at gmx.de oder mzell at gmx.de
http://zhost.iscool.net/ 





More information about the KDevelop mailing list