镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

wrong hashsum calculation #8693

Description

@volvpavl
  • Version: 6.x.x
  • Platform: Any
  • Subsystem: Crypto?

The attached code produces different results on 4.x.x and 6.x.x versions.

test1.js.txt

Perhaps something was broken with Crypto, or is this related to the UTF-8 stuff, not sure. Does not depend on the platform (Win64 / Mac).

Activity

  1. added
    duplicateIssues and PRs that are duplicates of other issues or PRs.
    cryptoIssues and PRs related to the crypto subsystem.
    on Sep 21, 2016
  2. addaleax commented on Sep 21, 2016

    @addaleax
    Member

    or is this related to the UTF-8 stuff

    Yes, the default encoding for the crypto methods changed in v6.x from latin1/binary to utf8. If you know that you rely on a specific encoding, you might want to pass that encoding as an explicit parameter to .update().

  3. addaleax commented on Sep 21, 2016

    @addaleax
    Member

    I’ve closed this as this is expected behaviour, but please feel free to ask follow-up questions!

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

    cryptoIssues and PRs related to the crypto subsystem.duplicateIssues and PRs that are duplicates of other issues or PRs.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions