Garry's Mod Wiki

Revision Difference

util.MD5#549187

<function name="MD5" parent="util" type="libraryfunc"> <description> Generates the [MD5 hash](https://en.wikipedia.org/wiki/MD5) of the specified string. <warning>MD5 is considered cryptographically broken and is known to be vulnerable to a variety of attacks. If security is a concern, use <page>util.SHA256</page>.</warning> <warning>MD5 has been found to be non collision resistant. As such, it may produce the same return value with a different argument. See <page>util.CRC</page> for a similar issue.</warning>⤶ </description> <realm>Shared</realm> <added>2021.07.01</added> <args> <arg name="stringToHash" type="string">The string to calculate the MD5 hash of.</arg> </args> <rets> <ret name="" type="string">The MD5 hash of the string in hexadecimal form.</ret> </rets> </function>