Calculating file hash in node.js
-
Updated
Oct 27, 2023 - JavaScript
Calculating file hash in node.js
DeadHash - JS version
This code generates a SHA-256 hash for a file by prompting the user to enter the file path, reading the file into a buffer using the fs module, and then calculating the hash using the crypto module. The hash is output to the console and the program is terminated.
Add a description, image, and links to the file-hash topic page so that developers can more easily learn about it.
To associate your repository with the file-hash topic, visit your repo's landing page and select "manage topics."