A little blood when I wipe.

I've been getting this for a few days now. A tiny bit of dark blood shows up on the toilet paper after I wipe. It's also painful. What is the cause?