$md5

From Scriptwiki
Jump to: navigation, search

Returns MD5 hash value for the specified data, where N = 0 for plain text (default), 1 for &binvar, 2 for filename.

$md5(text|&binvar|filename,[N])

Example

$md5(text string)

Returns the MD5 hash value of text string (a278c7ab35780d23f34c75dd23278b4b)

//bset -t &bvar 1 text string | echo -ag $md5(&bvar,1)

Echoes the same as the last value, this time using a binary variable.

$md5(mirc.ini,2)

Returns the MD5 hash value of the file mirc.ini.

See Also