If you remove the
.toUpperCase(). portion of the code in the
hex() function, then the output of the hashing function will be compatible with the output format of Unix/Linux versions of md5sum as well as
this JavaScript function for computing MD5 hashes client side (for implementing CHAP login systems)