Core Function BinarySHA1
From Sputnik Wiki
				
				
				(Difference between revisions)
				
																
				
				
								
				|  (Created page with "<pre> BinarySHA1( <binary-array> ) </pre>  === Description ===  Returns the SHA1 hash of a binary variable.  === Parameters ===  ==== binary-array ====  The binary variable to us...") | m (1 revision) | ||
| (2 intermediate revisions by one user not shown) | |||
| Line 26: | Line 26: | ||
| <syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
| − | my $Binary = Pack(" | + | my $Binary = Pack("A*", "Hello world!!!"); | 
| my $SHA1 = BinarySHA1($Binary); | my $SHA1 = BinarySHA1($Binary); | ||
| MsgBox( "SHA Hash is: $SHA1" ); | MsgBox( "SHA Hash is: $SHA1" ); | ||
Latest revision as of 12:37, 14 June 2015
BinarySHA1( <binary-array> )
| Contents | 
Description
Returns the SHA1 hash of a binary variable.
Parameters
binary-array
The binary variable to use.
Return Value
Success: Returns the hash.
Failure: Returns empty string.
Remarks
None.
Example
my $Binary = Pack("A*", "Hello world!!!"); my $SHA1 = BinarySHA1($Binary); MsgBox( "SHA Hash is: $SHA1" );
