These passwords aren’t hashed, they are obfuscated via symmetric encryption using a “hidden” key and then encoded in hex.
You can import com.inductiveautomation.ignition.common.GatewaySec
and use the encrypt/decrypt methods instead of trying to do it yourself.