Best way to torque crank bolt

Last one I did, I had the pan off, and I used the handle of a hammer and wedged it between the crank and the block to keep the crank from spinning.