Using XOR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Mc

    #1

    Using XOR

    Can anyone tell me an easy way to hide numbers using XOR as mask, i.e.

    I want to write a program that will get a number, then it will create two
    random numbers that when they are XOR'ed together will create the original
    number.

    e.g. Original number = 65

    The program will then come up with two random numbers that fit the bill,
    i.e. 150 & 215.

    When 150 is XOR'ed with 215 it comes out with 65.

    How can I do such a thing to creat the two numbers that once XOR'ed together
    create the original numebr using VB?

    I have Visual Studio .NET

    Cheers,

    Mike


  • Randy Birch

    #2
    Re: Using XOR

    Your question has been answered in another group.
    Please do not MULTI-POST your questions.

    If you feel you need to post to more than one group, which is seldom
    necessary, cross-post instead. This way your message is sent to all groups
    at once rather individual messages to each group, as multi-posting provides.
    In doing this, all responses to your post from any group are echoed to all
    the groups you posted to, thus everyone has the same info and knows when
    you've received your answer.

    --

    Randy Birch
    MVP Visual Basic

    Please respond only to the newsgroups so all can benefit.


    "Mike Mc" <apache@REMOVET HISBITamateur-astronomerANDTH IS.com> wrote in
    message news:40ec1d08_1 @mk-nntp-2.news.uk.tisca li.com...
    : Can anyone tell me an easy way to hide numbers using XOR as mask, i.e.
    :
    : I want to write a program that will get a number, then it will create two
    : random numbers that when they are XOR'ed together will create the original
    : number.
    :
    : e.g. Original number = 65
    :
    : The program will then come up with two random numbers that fit the bill,
    : i.e. 150 & 215.
    :
    : When 150 is XOR'ed with 215 it comes out with 65.
    :
    : How can I do such a thing to creat the two numbers that once XOR'ed
    together
    : create the original numebr using VB?
    :
    : I have Visual Studio .NET
    :
    : Cheers,
    :
    : Mike
    :
    :

    Comment

    Working...