Bamidbar / Numbers 24:17 · Remez
אֶרְאֶנּוּ וְלֹא עַתָּה אֲשׁוּרֶנּוּ וְלֹא קָרוֹב דָּרַךְ כּוֹכָב מִיַּעֲקֹב וְקָם שֵׁבֶט מִיִּשְׂרָאֵל וּמָחַץ פַּאֲתֵי מוֹאָב וְקַרְקַר כָּל־בְּנֵי־שֵׁת׃
I see him, but not now, I behold him, but not near. A star has stepped forth out of Yaakov, and a sceptre has risen out of Israel, and it shall crush the corners of Moav, and break down all the children of Shet (Seth).
Remez רֶמֶז
A star made of letters
A word can turn out to be a cipher. The sages take the words of this verse apart letter by letter and find in them David, the Name of the Eternal and the letters of prayer.
Ba'al HaTurim: "and break down" (קַרְקַר), in the cipher where the first letter of the alphabet swaps with the last, gives דגדג, and that equals the name David (דָּוִד) in the numerical value of its letters. The Kedushat Levi: "star" (כּוֹכָב) is 26 (כ״ו), the number of the Name, and 22 (כ״ב), the number of letters: with the twenty-two letters of prayer Israel leaves a mark in the Name and draws kindness upon itself. So Israel by its own will makes the Eternal king over itself.
How Kitzur Ba'al HaTurim and Kedushat Levi explain it
Kitzur Ba'al HaTurim And it shall crush the corners of Moav, and break down all the children of Shet
"And break down" (קַרְקַר) in the atbash cipher is דגדג, and that in the numerical value of its letters is David.
Kedushat Levi A star has stepped forth out of Yaakov, and a sceptre has risen out of Israel, and it shall crush the corners of Moav, and break down all the children of Shet
This is explained by the words of Scripture: "For kingship is the Eternal's, and He rules over the nations", and "saviours shall go up on Mount Tziyon (Zion), and the kingdom shall be the Eternal's". The point is the difference between kingship and rule. Kingship comes from the will of those who crown the king, and rule from the strength of the ruler over the people. The general rule: Israel by its own will crowns the Eternal, blessed is He, as king over itself, while over the nations now, in exile, the Eternal, blessed is He, rules by force, to frustrate their plans. But in the future all the nations will crown the Eternal, blessed is He, as king over themselves, as Rashi explains the verse "Hear, Israel, the Eternal is our Almighty, the Eternal is one". This is: "kingship is the Eternal's" over Israel, "and He rules over the nations" over the nations, "and saviours shall go up on Mount Tziyon, and the kingdom shall be the Eternal's" over all.
Now, no thought can grasp the Eternal, blessed is He, as is known. And we, Israel, say "Blessed are You, Eternal", because the letters shine for Israel to grasp what cannot be grasped: what thought cannot seize, the holy letters light up for Israel. So the kingship of the Eternal over Israel is completed. It turns out that Israel, as it were, does with the twenty-two letters what it wills: kindness, compassion, life. And so in all good for Israel: with the letters of the word "kindness" (חֶסֶד) they work kindness, that is, they, as it were, leave a mark in the Creator to bring kindness upon Israel, and so with the letters of the word "compassion" (רַחֲמִים), to pour compassion upon Israel. So Israel, as it were, leaves a mark with the twenty-two letters in the Creator, blessed is He, so that He pours upon them according to their will. And the Name is twenty-six, and the letters are twenty-two. This is "star" (כּוֹכָב): כ״ו and כ״ב, to leave a mark with the twenty-two letters in the Name that equals twenty-six, and so the kingship of the Eternal over Israel is completed. And this is "a sceptre has risen out of Israel": the sceptre is kingship, and it comes from Israel.
"And it shall crush the corners of Moav": "corners" (פַּאֲתֵי) are contraction, and contraction points to judgement. "And it shall crush the corners of Moav (מוֹאָב)": this is the Holy One, blessed is He, who is Father (אָב) to Israel, see the midrash on the book of Ruth. "And break down all the children of Shet." The general rule: in serving the Creator a person must burn, but for bodily things burning is forbidden. And another general rule: the service of the Eternal is in concealment, for holiness, as is known, is in concealment, while the outer is in the open. This is "and break down" (וְקַרְקַר): from the word "cold" (קַר). "Shet" (שֵׁת) means openness to the outer: in what is in the open, a person must be cold, so that he has no fervour, Heaven forbid.
Takeaway
Atbash (את״בש) is a cipher in which alef (א) swaps with tav (ת), bet (ב) with shin (ש), and so on. In it kuf (ק) becomes dalet (ד), and resh (ר) becomes gimel (ג).
דגדג: dalet (ד) 4, gimel (ג) 3, dalet (ד) 4, gimel (ג) 3, 14 in all. "David" (דָּוִד): dalet (ד) 4, vav (ו) 6, dalet (ד) 4, also 14.
The four-letter Name: yod (י) 10, hei (ה) 5, vav (ו) 6, hei (ה) 5, 26 in all. The Hebrew alphabet has 22 letters. "Star" (כּוֹכָב) splits into כ״ו, 26, and כ״ב, 22.
"For kingship is the Eternal's, and He rules over the nations" (Tehillim / Psalms 22:29). "And saviours shall go up on Mount Tziyon (Zion) to judge the mount of Esav, and the kingdom shall be the Eternal's" (Ovadyah / Obadiah 1:21).