Update password.php

Added a generic formula to calculate $raw_salt_len, it will always generate the least amount of data required for a given $required_salt_len.