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).