The string 2f123fd8 is not random. It is a CRC (Cyclic Redundancy Check) hash.
When PCSX2 loads a game (an .iso or .bin file), it calculates a unique checksum based on the game’s volume serial number and internal data. This checksum acts as a fingerprint. The emulator then looks in the cheats folder for a file named exactly [CRC].pnach. 2f123fd8.pnach
If 2f123fd8.pnach doesn’t work for you: The string 2f123fd8 is not random
This is the #1 mistake. In File Explorer, go to View > Show > File name extensions. Rename the file to remove the extra .txt. This checksum acts as a fingerprint
The easiest way to identify the file is to open it with a text editor (like Notepad or Notepad++). Often, creators will include metadata at the top of the file. Look for lines starting with gametitle= or comment=.
If it says something like gametitle=Kingdom Hearts II, you have your answer.
If you have downloaded this file or created your own, here is the step-by-step installation guide for PCSX2 (v1.6.x to v1.7.x nightly):