fix _crypt_password function with empty salt