I want to write Windows batch commands that can specify individual files or all files recursively in a folder. Either way, the output should be the full name (including path) of a file and its SHA256 hash value on a single line. For instance, as described elsewhere, I found that the Linux rhash tool could produce results that looked something like this:
6eb6c33775113d2ca571f3f7ad7afccbcd9fbb3938f3e35 /Test/hot plug BIOS settings.wav
By contrast, in that test, HASHSUM.BAT (as an example of a relevant Windows tool) declined to produce any results for about 1% of files in a folder.
My question: is there a Windows tool or command that can produce a list of files (with paths) and their SHA256 hashes, one per line? I want to be able to do this with commands, so as to mass-produce results for a potentially large number of files in different folders, without having to select them one at a time in a GUI.
Update: I'd like the option of using SHA512. I've come to discover that, counterintuitively, its output can be significantly faster on my hardware.