Re: Advances in the Sphere JavaScript Library
Reply #5 –
My engine re-implements the old Sphere API for backwards game compliance. My shim will be different and do the opposite of the kind of shim you'd make.
Example:
HashFromFile(filename, sha); // sha = true, hashes in sha-1, sha=false or undefined, hashes in MD5
This way the old functionality still works if you don't add SHA as a parameter, and if you do you can instantly upgrade your project from the old MD5 hash to the newer SHA hashes. Now, I use SHA-1 for now, but soon I'll change this API to take a constant so you can go between MD5, various types of SHA and other types of hash functions.