$md5 » History » Version 5
Per Amundsen, 02/23/2023 04:59 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$md5(text|&binvar|filename,[N])* |
||
4 | |||
5 | Returns a md5 hash value for the specified data. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 5 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | text<notextile>|</notextile>&binvar<notextile>|</notextile>filename | The text or &binvar or filename to calculate. | |
||
12 | | [N] | The type to calculate N = 0 for plain text (default), 1 for &binvar, 2 for filename (optional) | |
||
13 | 1 | Per Amundsen | |
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | ; calculate a md5 hash of the text 'Hello World' |
||
18 | //echo -ag The MD5 hash for Hello World is $md5(Hello World) |
||
19 | |||
20 | ; calculate a md5 hash of AdiIRC.exe' |
||
21 | //echo -ag The MD5 hash for AdiIRC.exe is $md5($adiircexe, 2) |
||
22 | </pre> |
||
23 |