The title says it all. There are already thousands of online websites where you input a character string, and it would output the MD5 hash (or other) or the password.
I was wondering about the legality of publishing a book with the, lets say, 100 or 1000 most commonly used passwords, together with their hash values.
Note that the book does not endorse/encourage password hacking in any way, it would just be a "hash table" of sorts, combining one kind of information with another.
So would it be legal to publish such a book?