We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The hex value of SHA1 returned by CRT is of size 32 and not 40
The hex value of sha1 for "hello world" should be "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
The hex value of sha1 for "hello world" is "2aae6c35c94fcfb415dbe95f408b9"
// test.mjs import { crypto } from "aws-crt"; import { createHash } from "node:crypto"; const data = "hello world"; // Logs '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed' console.log(createHash("sha1").update(data).digest("hex")); // Logs '2aae6c35c94fcfb415dbe95f408b9ce9' console.log(Buffer.from(crypto.hash_sha1(data).buffer).toString("hex"));
No response
1.22.0
20.17.0
macOS 14.6.1 (23G93)
The text was updated successfully, but these errors were encountered:
fixed in #583
Sorry, something went wrong.
DmitriyMusatkin
No branches or pull requests
Describe the bug
The hex value of SHA1 returned by CRT is of size 32 and not 40
Expected Behavior
The hex value of sha1 for "hello world" should be "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
Current Behavior
The hex value of sha1 for "hello world" is "2aae6c35c94fcfb415dbe95f408b9"
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
aws-crt-nodejs version used
1.22.0
nodejs version used
20.17.0
Operating System and version
macOS 14.6.1 (23G93)
The text was updated successfully, but these errors were encountered: