Clearly, you can't use any trim functions, because the last byte can
be indistinguishable from a space, as you've found.

I believe the hash function you're using always results in a 256-bit
result (so 32 bytes, or 64 hex digits). So simply always grab that
length.

John Y.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].