Title: Binary data hash error · Issue #36 · blueimp/JavaScript-MD5 · GitHub
Open Graph Title: Binary data hash error · Issue #36 · blueimp/JavaScript-MD5
X Title: Binary data hash error · Issue #36 · blueimp/JavaScript-MD5
Description: I am trying to migrate from node-forge to blueimp-mp5 + web crypto api. I created test script: ` var hex = 'B955EF8C83544AD74F803321866F005A'; var bytesStr = forge.util.hexToBytes(hex); var data = bytesStr; var h1 = forge.md.md5.create()...
Open Graph Description: I am trying to migrate from node-forge to blueimp-mp5 + web crypto api. I created test script: ` var hex = 'B955EF8C83544AD74F803321866F005A'; var bytesStr = forge.util.hexToBytes(hex); var data = ...
X Description: I am trying to migrate from node-forge to blueimp-mp5 + web crypto api. I created test script: ` var hex = 'B955EF8C83544AD74F803321866F005A'; var bytesStr = forge.util.hexToBytes(hex); var...
Opengraph URL: https://github.com/blueimp/JavaScript-MD5/issues/36
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Binary data hash error","articleBody":"I am trying to migrate from node-forge to blueimp-mp5 + web crypto api.\r\nI created test script:\r\n\r\n` var hex = 'B955EF8C83544AD74F803321866F005A';\r\n \r\n var bytesStr = forge.util.hexToBytes(hex);\r\n\r\n var data = bytesStr;\r\n var h1 = forge.md.md5.create().start().update(data).digest().getBytes();\r\n var h2 = md5(data, null, true);\r\n\r\n console.log(\"H1: \", h1);\r\n console.log(\"H2: \", h2);`\r\n\r\nIf 'data' is normal string, everything seems to work fine. But if 'data' is binary (like in example), hashes are different.\r\nAm I doing something wrong or is it bug please?","author":{"url":"https://github.com/qilx","@type":"Person","name":"qilx"},"datePublished":"2020-09-03T21:27:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/36/JavaScript-MD5/issues/36"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aa4df81f-540b-6db4-f8c4-e46e54b167dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF54:2C2D0C:64FF91:848B25:6971611E |
| html-safe-nonce | cf5efd380de061dd8c056c0992c20b33a1aa2a684f5f8d2453a5294b2413242f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjU0OjJDMkQwQzo2NEZGOTE6ODQ4QjI1OjY5NzE2MTFFIiwidmlzaXRvcl9pZCI6IjEzMTY3MTExMzIxODA4NjUzMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 45565a49211e6bb648ae7043e30665847bb41a53ebb0c8152c30f4e6016608b9 |
| hovercard-subject-tag | issue:692383824 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/blueimp/JavaScript-MD5/36/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7116900e425653ffa3e7528a19db2347037ae16f3d7bac4ae115c8d066ab307e/blueimp/JavaScript-MD5/issues/36 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7116900e425653ffa3e7528a19db2347037ae16f3d7bac4ae115c8d066ab307e/blueimp/JavaScript-MD5/issues/36 |
| og:image:alt | I am trying to migrate from node-forge to blueimp-mp5 + web crypto api. I created test script: ` var hex = 'B955EF8C83544AD74F803321866F005A'; var bytesStr = forge.util.hexToBytes(hex); var data = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | qilx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1c338feb2465fb28789c852d4d9bbb3a30c0620671d1df7914edfbde84531d5e |
| turbo-cache-control | no-preview |
| go-import | github.com/blueimp/JavaScript-MD5 git https://github.com/blueimp/JavaScript-MD5.git |
| octolytics-dimension-user_id | 244586 |
| octolytics-dimension-user_login | blueimp |
| octolytics-dimension-repository_id | 2955178 |
| octolytics-dimension-repository_nwo | blueimp/JavaScript-MD5 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2955178 |
| octolytics-dimension-repository_network_root_nwo | blueimp/JavaScript-MD5 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca28321bb5dd58db88720c48080666bfbe28520a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width