Re: Cross platform password string encryption



pegguru@xxxxxxxxx wrote:
Ozzker wrote:
Platforms: different microprocessors use different schemes for
handling memory. For example, some processors are "big-endian": when
they store a 16-bit integer (in two consecutive memory locations), they
put the 8 most significant bits in the lower address and the least
significant bits in the higher address - same thing if they write the
16-bit integer to disk. Other processors are "little-endian": they
put the 8 least significant bits in the lower address and the most
significant bits in the higher address - again, same thing if they
write the 16-bit integer to disk. You can imagine what happens if a
little-endian processor reads a file of integers created by a
big-endian processor.

[NB: I may have gotten the "little-endian/big-endian" definitions
backwards - I consumed way too much sugar last night and really need
some programmer candy (aspirin).]

Your definitions are the conventional ones.

As computer science moves into more abstract concepts, I find that many
young programmers have very little concept of what happens at the
microprocessor level.

Too true.

--Mike Amling
.