This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
And you may also need to UUencode the hash in order to prevent it from getting corrupted in the database (depending on the characterset the database uses to store string data).
We once found that out to our shagrin, luckily we caught it before going life (was luck, someone tried a password which happened to result in a non-printable character in the hash, had that not happened we'd not have caught it in testing).