XL.ComputeMD5Hash function: encode a text string to an MD5 hash

XL.ComputeMD5Hash function – Text function type – returns the MD5 hash value for the specified text string in a specified encoding.
Using the MD5 hashing algorithm, the function helps encode any text string into a 128-bit hash value. Supported encodings include: ASCII, Unicode, BigEndianUnicode, UTF7, UTF8, UTF32.
Before you begin, add Functions to Excel
Functions are one of the 20+ features within XLTools Add-in for Excel. Works in Excel 2019, 2016, 2013, 2010, desktop Office 365.

Download XLTools for Excel
Syntax
=XL.ComputeMD5Hash(text, encoding)
Argument | Description |
---|---|
text [required] | The text string to generate the hash for |
encoding [optional] | Encoding to be used to generate the hash value:
|
Examples [download]
Download this spreadsheet with examples and try the function yourself.
Download examples with this function (xlsx)
Formula | Description |
---|---|
=XL.ComputeMD5Hash("Simple text string") | Returns MD5 hash for the specified text string |
=XL.ComputeMD5Hash(A3) | Returns MD5 hash for the text string in cell A3 |
=XL.ComputeMD5Hash(A3,"ASCII") | Returns MD5 hash in ASCII encoding for the text string in cell A3 |
=XL.ComputeMD5Hash(A3,UTF8) | Returns MD5 hash in UTF8 encoding for the text string in cell A3 |
Any questions or suggestions?