Re: xor question
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Dec 2005 13:44:27 -0500
Susan,
Well, considering that 476F does not equal 71111, but rather 18287, and
7262 in hex equals 29282 (and not 114098), I would say that could be one of
the reasons.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Susan" <Susan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:905B73BA-4CE0-4BCF-8647-5022A138DE87@xxxxxxxxxxxxxxxx
>I have a stream of chars where I am trying to xor certain parts. I guess
>the
> meat of my question is that if I xor the hex values:
> 476f ^ 7262
> I get a different value that if I xor the integer values:
> 71111 ^ 114098
> Does anyone know why? I'm assuming that I can't just use the hex values
> for
> xor in c# or am I wrong? It would make my life much easier if I could.
>
> Thanks,
> Susan
.
- Prev by Date: inheriting with static methods and type passing, recommendation?
- Next by Date: Re: Structure as object property
- Previous by thread: inheriting with static methods and type passing, recommendation?
- Next by thread: Re: xor question
- Index(es):
Relevant Pages
|