![]() ' PS_GetStringHash("Testing The Code A Little Bit", "MD5") ' sHashAlgorithm : Algorithm to use for the Hashing: MACTripleDES, MD5, RIPEMD160 ' Req'd Refs: Late Binding -> none required ' Copyright : The following is release as Attribution-ShareAlike 4.0 International ' Utilizes PowerShell to perform the Hashing. ' Purpose : Returns the specified Hash for the supplied string. ' Author : Daniel Pineault, CARDA Consultants Inc. I won’t bore you with the detail, you can review the code for yourself. ![]() The basic principle remains identical, in the larger sense, that is I use VBA to run a PowerShell script and return the generated Hash, but this time we need to use the -InputStream parameter to be able to use a string directly. Since I was already working on Get a File Hash using VBA it made sense to look into how one could hash a string directly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |