Ensure password length is 32-bit integer

Fixes #14