Difference between revisions of "$md5"

From Scriptwiki
Jump to: navigation, search
m
m
 
Line 1: Line 1:
Returns md5 hash value for the specified data, where N = 0 for plain text (default), 1 for &binvar, 2 for filename.
+
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])
 
  $md5(text|&binvar|filename,[N])
  
 
== Example ==
 
== Example ==
 +
 
  $md5(text string)
 
  $md5(text string)
Returns the md5 hash value of ''text string'' (a278c7ab35780d23f34c75dd23278b4b)
+
Returns the MD5 hash value of ''text string'' (a278c7ab35780d23f34c75dd23278b4b)
 +
 
 
  //bset -t &bvar 1 text string | echo -ag $md5(&bvar,1)
 
  //bset -t &bvar 1 text string | echo -ag $md5(&bvar,1)
 
Echoes the same as the last value, this time using a binary variable.
 
Echoes the same as the last value, this time using a binary variable.
 +
 
  $md5(mirc.ini,2)
 
  $md5(mirc.ini,2)
 
Returns the MD5 hash value of the file ''mirc.ini''.
 
Returns the MD5 hash value of the file ''mirc.ini''.
  
 
== See Also ==
 
== See Also ==
 +
 
* [[$sha1]]
 
* [[$sha1]]
  
 
[[Category:Other Identifiers]]
 
[[Category:Other Identifiers]]

Latest revision as of 22:30, 12 April 2008

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