Re: need an unsigned int in java, so...
- From: david@xxxxxxxxxx (J. David Boyd)
- Date: Thu, 28 Jul 2005 12:53:32 GMT
Knute Johnson <nospam@xxxxxxxxxxxxxxxxx> writes:
> J. David Boyd wrote:
>> what's the workaround?
>> I've got some legacy C code that I need to convert to java, and some
>> of it
>> depends on unsigned ints.
>> The code is doing some kind of stupid crc and xor to encrypt the
>> password
>> entered by a user.
>> When I convert it to java, and run it, sometimes the summation
>> variables go
>> negative, changing some of the values in my encrypted string.
>> Any pointers, ideas, or URLs as to what to do to get around this?
>> Dave in Largo, FL
>> p.s. I've had no luck with google...
>>
>
> Use a long.
>
I need the number to wrap around, using a long it just keeps on going...
.
- Follow-Ups:
- Re: need an unsigned int in java, so...
- From: Patricia Shanahan
- Re: need an unsigned int in java, so...
- References:
- need an unsigned int in java, so...
- From: J. David Boyd
- Re: need an unsigned int in java, so...
- From: Knute Johnson
- need an unsigned int in java, so...
- Prev by Date: Re: JNLP & Web start & signing?
- Next by Date: Re: need an unsigned int in java, so...
- Previous by thread: Re: need an unsigned int in java, so...
- Next by thread: Re: need an unsigned int in java, so...
- Index(es):
Relevant Pages
|