could be an abscess
Welcome to HealthcareMagic.
The pain in that region could be either due to an abscess or a fissure.
If you are passing hard stools, then the possibility of fissure is more.
In abscess, there could be a painful swelling felt, and may cause fever
in later stage.
But these conditions will need a clinical examination for confirmation. And management of both is different, with the abscess requiring emergency surgical drainage
So I would suggest that you show to a surgeon for a clinical examination and further management.
Hope I have been helpful.
Dr. Ashish Verma