Garry's Mod Wiki

Revision Difference

util.MD5#547034

<function name="MD5" parent="util" type="libraryfunc"> <description>Generates the [MD5 Checksum](https://en.wikipedia.org/wiki/MD5) of the specified string.</description>⤶ <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>⤶ </description>⤶ <realm>Shared</realm> <added>2021.07.01</added> <args> <arg name="stringToHash" type="string">The string to calculate the checksum of.</arg> <arg name="stringToHash" type="string">The string to calculate the MD5 hash of.</arg> </args> <rets> <ret name="" type="string">The MD5 hex string of the checksum.</ret> <ret name="" type="string">The MD5 hash of the string in hexadecimal form.</ret> </rets> </function>