mlreportgen.utils.hash class

Package: mlreportgen.utils
Superclasses:

Hash a string

Construction

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

Input Arguments

expand all

Input to hash, specified as a string.

Output Arguments

expand all

Hashed output of original string, returned as an MD5 hash.

Examples

Hash a string

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

    "5d075889248b68d16b1fa9ad430fb4c8"

Introduced in R2018b