S
Scott.R.Lemke
I'm playing around with some of the digesting classes to see if I can't
write a quick file comparer(diff) utility for practice. What I am doing
is taking a string, digesting it, then comparing it to a digest to
another string to see if they are equal(trying to use something along
the lines of the rsync algorithm)
What I came across was that calling getBytes on my strings is not
giving me a consistent result. Successive getByte calls to equivilent,
or even the same, string object are giving me different bytes, which in
turn leads to different digests.
My question is, am I missing something? Is my assumption that calls of
getBytes to equivilent or the exact same string should give the same
byte[] result wrong?
write a quick file comparer(diff) utility for practice. What I am doing
is taking a string, digesting it, then comparing it to a digest to
another string to see if they are equal(trying to use something along
the lines of the rsync algorithm)
What I came across was that calling getBytes on my strings is not
giving me a consistent result. Successive getByte calls to equivilent,
or even the same, string object are giving me different bytes, which in
turn leads to different digests.
My question is, am I missing something? Is my assumption that calls of
getBytes to equivilent or the exact same string should give the same
byte[] result wrong?