Currently node.js doesn't handle Buffer in the crypto.hash update method.
We need to make sure that when passed an arbitrary binary buffer it will produce the same output as if the sha512sum command-line program was ran on that binary data.
Looking at the documentation of node.js about 'binary' strings work could be a good start. Writing a little program that uses random data to test might be another option.
Currently node.js doesn't handle Buffer in the crypto.hash update method.
We need to make sure that when passed an arbitrary binary buffer it will produce the same output as if the sha512sum command-line program was ran on that binary data.
Looking at the documentation of node.js about 'binary' strings work could be a good start. Writing a little program that uses random data to test might be another option.