Skip to content

node.js buffer vs. 'binary' strings and crypto.hash <medium> #3

Description

@DrDub

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions