Hi, this is a simple hash code that can hash a password for exemple... When you register in your account you create a password and this password must be store. But it's not store like you enter it, first it pass into a hash function. A hash function can go in but can not go out which mean that if you pass something inside you will not be able to get back the thing you enter... And you'll get the same output with the same input
All by me, even the math block are by me... you are free to use it for your Scratch login system, just credits... well, maybe not really secure... If you want to use it you can choose the length of the hash (that mean that the input length must be less than the length of the final hash)