NodeJS “crypto” hash seems to produce different output than Crypto-JS javascript library
问题 I am using NodeJS's bundled crypto module for SHA256 hashing on the server-side. On the client-side, I am using a javascript library called Crypto-JS. I am using SHA256 hashes for a login system that uses classical nonce-based authentication. However, my server-side and client-side hash-digests don't match up even when the hash-messages are the same (I have checked this). Even the length of the hash-digests are different. This is a snippet of my client-side implementation: var password_hash =