# abt encryption algorithm

• 12-22-2003
purIn
abt encryption algorithm
hellooooo everyone here..

i hv sum qns.. i m doin prj recently.. so hence doin encryption on patient text files.. i m new to encryption.. so i m using xor encryption. i noe it is basic .. but it is easy to be decrypted by hackers.. right? so, i use xor encryption wif random xor-value.
is it ok?

okie.. here math algorithm..::::

srand(10); on top of the program -- // Init the random number generator with "10"...
i dun get it.. pls enlighten mi..

c=c ^ (rand()/12000 + 1);

u noe y 12000+ 1 is used? y nt 12000 ? any more to tell mi regardin tt.. feel free to tell mi.. i m willing to learn more..

that's all.. thanks. hope to hear frm u asap..

:)
• 12-22-2003
Salem
Huh?
It seems to me your writing style is sufficiently encrypted to make it almost meaningless to anyone else without any need for software.
• 12-22-2003
Hexxx
How about you decrypt what you want to ask before asking it?
• 12-22-2003
Prelude
>u noe y 12000+ 1 is used? y nt 12000 ? any more to tell mi regardin tt.. feel free to tell mi..
Either your keyboard has serious issues, or you are an idiot. Lack of proper grammar and spelling is a good measure of who gets awarded a residency in the killfile, so if you want help, at least act like you have some measure of intelligence.
• 12-22-2003
WaltP
Re: abt encryption algorithm
See all the above posts.

I actually translated the following into human and can respond:
Quote:

Originally posted by purIn
srand(10); on top of the program -- // Init the random number generator with "10"...
i dun get it.. pls enlighten mi..
:)

the '10' is a seed to the random number generator that makes the rand() function actually return random values. Every number that is passed will return a different list of numbers. The same number returns the same list. Therefore you are able to test your code easily knowing what random list is going to be returned.

To actually randomize the list, add the time.h header and change the statement to:
Code:

`srand(time());`
gd lk n yr pgmg ndvrs.
• 12-22-2003
Hexxx
what's the "pgmg" for?
• 12-22-2003
Thantos
program
• 12-22-2003
XSquared
Programming, actually.
• 12-22-2003
WaltP
I figured if he can make up s**t, so can I :rolleyes:
• 12-22-2003
Hexxx
Quote:

Originally posted by WaltP
I figured if he can make up s**t, so can I :rolleyes:
yeah, i figured most of the crap u made up :P