An electric fence is a barrier that uses electric shocks to deter animals or people from crossing a boundary. Electric fences are designed to create an electrical circuit when touched by a person or animal.
A component called a power energizer converts power into a brief high voltage pulse.
A person or animal touching both the wire and the earth during a pulse will complete an electrical circuit and will conduct the pulse, causing an uncomfortable electric shock. Razor Wire is a mesh of metal strips with sharp edges whose purpose is to prevent passage by humans.