Crc32 function

From StealthBot Wiki
Jump to: navigation, search

The Crc32() function is available to StealthBot through the Script Support Class. This function returns a CRC32 hash of the provided string.

Development

The Crc32 function was added to StealthBot for version 2.7.

Documentation

'// CRC32
'// Returns the result of a standard CRC32 hash
Public Function CRC32(ByRef str As String) As Long

    Dim clsCRC32 As New clsCRC32

    CRC32 = clsCRC32.CRC32(str)

    Set clsCRC32 = Nothing

End Function

Summary

Returns a CRC32 hash of the specified value. The CRC32 function uses the standard CRC32 "polynomial" 0xEDB88320.

Syntax

lngHash = CRC32(Value)

Arguments

  • str is the value to hash.

Returns

Returns a Long integer value which is a CRC32 hash of the specified string. This value can be positive or negative.

Examples

See also