Main Content


Hash a piece of text

Since R2018b



outstring = mlreportgen.utils.hash(intext) generates an MD5 hash for a piece of text. An MD5 hash encodes the text into a 128-bit representation.


Hash a Piece of Text

mlreportgen.utils.hash("This is a test string to hash.")
ans = 


Input Arguments

collapse all

Text to hash, specified as a character vector or string scalar.

Output Arguments

collapse all

Hashed representation of original text, returned as a string scalar.

Version History

Introduced in R2018b