Core Function BinaryHash
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> BinaryHash( <binary-array> ) </pre> === Description === Gain a unique Hash of the bytes in this binary variable. === Parameters === ==== binary-array ==== The binary v...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
BinaryHash( <binary-array> )
Contents |
Description
Gain a unique Hash of the bytes in this binary variable.
Parameters
binary-array
The binary variable to generate the hash for.
Return Value
Success: Returns the hash.
Failure: Returns 0.
Remarks
The hash is unique and can be used to compare against another hash to see if both variables have the exact same data.
The hash is a 64Bit hash.
Example
my $bin = Pack("A*", "Hello world!"); my $hash = BinaryHash($bin); say $hash; // Prints: 55230833