

Please note that its output differs from that of the SHA512Managed class. In general these hashes do not make use of a seed value, but to illustrate the method, the code contains one such example, ( FileToSHA512SALT()).String hash routines are given in another section.The code is made for single files, but the code given on an adjacent page, Folder Hashing in VBA, can be used for recursive hash listings, again with a choice of hashes and output options.

The VBA code below generates the digests for the MD5, SHA1, SHA2-256, SHA2-384, and SHA2-512 hashes. Several algorithms are provided, with output options for base64 or hex.This section contains code for making file hashes, that is, hashes of entire files.2.2 Using Built-in Windows Functions in VBA.
