[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: KDevelop Data Encryption Routines
From:       Michael Zell <zhost () gmx ! de>
Date:       2000-04-04 9:39:53
[Download RAW message or body]

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@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@gmx.de oder mzell@gmx.de
http://zhost.iscool.net/ 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic