Here's a simple way to hash a string. Unfortunately, it doesn't work with long strings due to how Scratch handles long numbers.
Example Hashes: a = 23355001 b = 54111321 c = 85539541