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 SHA256 returned by CRT is of size 32 and not 64
The hex value of sha256 for "hello world" should be "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
The hex value of sha256 for "hello world" is "b94d27b9934d3e08a52e52d7da7dabfa"
// test.mjs import { crypto } from "aws-crt"; import { createHash } from "node:crypto"; const data = "hello world"; // Logs 'b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9' console.log(createHash("sha256").update(data).digest("hex")); // Logs 'b94d27b9934d3e08a52e52d7da7dabfa' console.log(Buffer.from(crypto.hash_sha256(data).buffer).toString("hex"));
No response
Likely has the same root cause as that of sha1 in #581
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 SHA256 returned by CRT is of size 32 and not 64
Expected Behavior
The hex value of sha256 for "hello world" should be "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
Current Behavior
The hex value of sha256 for "hello world" is "b94d27b9934d3e08a52e52d7da7dabfa"
Reproduction Steps
Possible Solution
No response
Additional Information/Context
Likely has the same root cause as that of sha1 in #581
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: