PHP class for MD5 Hash Chaining Encryption