buffer_sha1(buffer,offset,size)

From ENIGMA

Jump to: navigation, search

Description

Encrypts the specified contents of the buffer to an SHA-1 hash. SHA-1 is used for string encryption and other data authentication in programming, and also the popular GitHub source revision control services, it was designed by the United States National Security Agency.

Parameters

Parameter Data Type Description
buffer integer the index of the buffer to encrypt the contents of
offset unsigned offset into the buffer where the contents start, in bytes
size unsigned size of the contents to encrypt, in bytes

Return Values

string: Returns an SHA-1 hash of the specified contents of the buffer.

Example Call

// demonstrates obtaining an SHA-1 hash of the contents of a buffer
var hash;
hash = buffer_sha1(mybuffer, 0, buffer_get_size(buff));
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox