We had researched electric fences a lot a few years ago for our bee hives.
You can electrify some wire but when we looked into it, we got dissuaded as it takes a particular wire and particular juice to do it. In some states, it's illegal to electrify barbed wire.
If buying a new one, a lot...