By the Hebrew reversal cipher, a favorite method of medieval tricksters, occultists, cryptographers, and wise guys, Baphomet converts into Sophia. The Catalan philosopher Ramon Llull went to town with lots of different ciphers and he built alphabet wheel contraptions to facilitate his hobby.
You just write the Hebrew alphabet backwards, and match the letters in reverse order with the ones in the same position going frontwards. It would be as though you substituted Z for A, Y for B, X for C, and so on. The Hebrew alphabet reversed would go like this, parallel to the frontward order:
a b g d h v z H T y k l m n s ‘ p S q r š t
t š r q S p ‘ s n m l k y T H z v h d g b a
For a letter from the top row, substitute the letter immediately under it. To encode a non-Hebrew word, you have to convert it into Hebrew letters. This is one way that the crafty operator can work in come clever finagling to make it come out the way you want it to.
Sophia is the Greek name for the Goddess of Wisdom, who was accepted in early Christianity as a quasi-Goddess. The Church patriarchs may have interpreted Sophia as a personification of an abstract quality, just as the late Neoplatonic philsopher Boethius wrote of Philosophy personified as a woman in The Consolation of Philsophy.
It’s a simple substitution cipher, so you can reverse a cipher with this table, too. If Baphomet is written with the Hebrew letters b-p-v-m-t (skip most of the vowels and just write consonants, except that in Hebrew the vowel /o/ is usually spelled with the letter v). This reverses to š-v-p-y-a, Sophia. Voilà.
Whoever came up with this finagled the initial letter S in Sophia just a little bit, because that letter usually is read as “shin”… but sometimes it can be “sin” with the value of /s/. Why didn’t they just use the letter samekh, the regular s? In that case the cipher would result in the name Haphomet. Which really doesn’t sound like anything. The Arabic phrase Abu Fahmat (Father of Understanding) does sound like a likely coinage for an occult fraternity in the pursuit of wisdom. It’s intriguing how the Arabic interpretation and the Hebrew cipher dovetail so neatly.