I was recently setting up some web based forms for decrypting HeidiSQL passwords from the configuration file and decided that I wanted to do it in PHP server side instead of with Javascript. I found jpatters code on Github which I forked and ported to run on PHP. My code on Github is here, and you can use the form I created here!