$sha1

From Scriptwiki
Revision as of 21:29, 12 April 2008 by Daveoh (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

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

Example

$sha1(text string)

Returns the SHA-1 hash value of text string (384270d144eede06a0254452cc26d06f2b0005d6)

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

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

$sha1(mirc.ini,2)

Returns the SHA-1 hash value of the file mirc.ini.

See Also