need an unsigned int in java, so...




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


.



Relevant Pages

  • Re: need an unsigned int in java, so...
    ... depends on unsigned ints. ... When I convert it to java, and run it, sometimes the summation variables go ... changing some of the values in my encrypted string. ... comparison operators are also different for signed and unsigned types, but you shouldn't need this in CRC code.) ...
    (comp.lang.java.help)
  • Re: need an unsigned int in java, so...
    ... depends on unsigned ints. ... The code is doing some kind of stupid crc and xor to encrypt the password ... When I convert it to java, and run it, sometimes the summation variables go ... changing some of the values in my encrypted string. ...
    (comp.lang.java.help)
  • Re: need an unsigned int in java, so...
    ... I've got some legacy C code that I need to convert to java, and some of it depends on unsigned ints. ... When I convert it to java, and run it, sometimes the summation variables go negative, changing some of the values in my encrypted string. ...
    (comp.lang.java.help)
  • Re: need an unsigned int in java, so...
    ... I've got some legacy C code that I need to convert to java, ... depends on unsigned ints. ... When I convert it to java, and run it, sometimes the summation variables go ... changing some of the values in my encrypted string. ...
    (comp.lang.java.help)
  • Re: need an unsigned int in java, so...
    ... > depends on unsigned ints. ... > When I convert it to java, and run it, sometimes the summation variables go ... changing some of the values in my encrypted string. ... What part fails with signed integers? ...
    (comp.lang.java.help)