For one thing, it is far older than medieval. All religions have barbarism within them. There are horrific passages in the bible containing absurd and contradictory laws with appalling punishment. Unfortunately there are some in every religion that are drawn towards this historical interpretation to support what are very modern desires and conflicts.
For radical Islamic terrorst read KKK. Every religion has them....