Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: implement crypto.hash() #51044

Closed
wants to merge 3 commits into from

Commits on Feb 26, 2024

  1. Configuration menu
    Copy the full SHA
    28e62e7 View commit details
    Browse the repository at this point in the history
  2. crypto: implement crypto.hash()

    This patch introduces a helper crypto.hash() that computes
    a digest from the input at one shot. This can be 1.2-1.6x faster
    than the object-based createHash() for smaller inputs (<= 5MB)
    that are readily available (not streamed) and incur less memory
    overhead since no intermediate objects will be created.
    joyeecheung committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    cb7662b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1da2bb5 View commit details
    Browse the repository at this point in the history