Hash calculation

Calculate string hash.

Random generate

Generate random string.