Skip to content

Instantly share code, notes, and snippets.

@jrdmb
jrdmb / vba-sha-512.md
Last active June 5, 2020 05:24
VBA Code for SHA-512 hash using mscorlib.dll

Other links to creating SHA-512 hashes in various Windows apps:

The code below is adapted from: http://stackoverflow.com/questions/11394811/compute-sha512-on-vba-excel-2003

64-bit MS Access VBA code to calculate an SHA-512 or SHA-256 hash in VBA.  This requires a VBA reference to the .Net Framework 4.0 mscorlib.dll.  The hashed strings are calculated using calls to encryption methods built into mscorlib.dll.  The calculated hash strings are the same values as those calculated with jsSHA, a Javascript SHA implementation (see htt