# Tag Info

4

If all you want is a simple hash function you could do something like this. First take your original message and apply something like ROT 13 to it. This gives a reversible cipher, of course. Then give each letter a number, say N = 1, O = 2, etc, wrapping after Z. Next, just add up all of those values. It is no longer a reversible cipher, but a hash. To get ...

2

A simple hash algorithm is modulo or remainder (they are the same for positive numbers). You only need be able to count. To calculate $n$ modulo $m$, take $m$ empty pots, and $n$ marbles. Place one marble in front of each pot, then put the marbles in the pots, and repeat until you do not have enough marble for each pot, count the marbles that are in-front ...

1

Pick your first word from the sentence to hash. Look it up in a dictionary and write down the first word of the description. Pick the next word and look it up. Write down the second word from the description. Do this repeatedly and wrapping around from start to finish of the description as many times as necessary depending on the position of the word. A ...

Only top voted, non community-wiki answers of a minimum length are eligible