This member cannot be used in scripts, but is usable in the command bar.
The GetHash function returns a hash of the script’s source.
What is a Hash
A hash is a string of characters produced by a cryptographic algorithm that maps data of arbitrary size, since scripts can be short or long, to data of a fixed size, a string of a fixed length. Although they have several uses, hashes are often used to determine the integrity of data and make it faster to look up data. If you compare two pieces of data and their hashes do not match, then the data has changed.
Hashes have three key properties:
- They are often of fixed lengths. Since the function uses a hashing algorithm known as MD5, this function always generates hashes consisting of 32 hexadecimal (number and letter) characters.
- The same data (e.g. script source) always generates the same hash.
- Different data (e.g. different script sources) generate unique hashes. It is highly unlikely that two different sources will generate the same hash.
The hash function has several limitations, including:
- If the script’s
BaseScript/LinkedSource|LinkedSourceproperty is set, then this method will return the empty string.
- This item is protected. Attempting to use it in a
LocalScriptwill cause an error.
The 32 character hash value generated by the hash function