You would just wrap the second reference to $_POST["new_password"] with the encryption function you want to use, like:
$InsertQuery->bindColumn("new_password", "s", "".((isset($_POST["new_password"]))?hash("sha256", $_POST["new_password"]):"") ."", "WA_DEFAULT");