Node.js create md5 hash from utf-8 string
✓ Published0🌍 Public
Aadkdev
Last edited Sep 22, 2014
Created on Sep 22, 2014
This example demonstrates how to compute an MD5 hash from a UTF-8 encoded string in Node.js. The code defines a sample string containing both English and Thai characters, then uses the `crypto` module’s `createHash` method to generate the hash, feeding the string via `update` with the `'utf8'` encoding and outputting the result as a hexadecimal digest with `digest("hex")`. The example highlights the direct API usage for hashing multilingual text without any additional processing or visualization.
AI-generated description