abt encryption algorithm

This is a discussion on abt encryption algorithm within the C Programming forums, part of the General Programming Boards category; hellooooo everyone here.. i hv sum qns.. i m doin prj recently.. so hence doin encryption on patient text files.. ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    1

    Question 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..


  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Huh?
    It seems to me your writing style is sufficiently encrypted to make it almost meaningless to anyone else without any need for software.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    104
    How about you decrypt what you want to ask before asking it?

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.
    My best code is written with the delete key.

  5. #5
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157

    Re: abt encryption algorithm

    See all the above posts.

    I actually translated the following into human and can respond:
    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.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  6. #6
    Registered User
    Join Date
    Oct 2003
    Posts
    104
    what's the "pgmg" for?

  7. #7
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    program

  8. #8
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Programming, actually.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  9. #9
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157
    I figured if he can make up s**t, so can I
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  10. #10
    Registered User
    Join Date
    Oct 2003
    Posts
    104
    Originally posted by WaltP
    I figured if he can make up s**t, so can I
    yeah, i figured most of the crap u made up :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RSA Encryption Algorithm help
    By gL_nEwB in forum C++ Programming
    Replies: 2
    Last Post: 04-27-2008, 04:14 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. How abt an algorithm and logic contest
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 08-12-2002, 11:06 AM
  4. How abt a Algorithm contest
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-12-2002, 02:16 AM
  5. What's wrong with my Stream Cipher Encryption?
    By Davros in forum C++ Programming
    Replies: 3
    Last Post: 04-18-2002, 09:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21