forse ti converrebbe usare le funzioni mcrypt_encryp/mcrypt_decryp:

http://php.net/manual/en/function.mcrypt-encrypt.php

magari implementando un bel RIJNDAEL....il thread che hai preso d'esempio è un pochetto troppo datato per una cosa del genere