Category Archives: PHP

Handling TripleDES (ECB with PKCS5Padding) in PHP

I came across an issue a few years back that I was supposed to post about there and then; what the hey no buggers bothered to fix it. Basically PHP – MCrypt is great, it handles lots of nice encryption algorithms very simply and provides just the right amount of abstraction to the user to … Read on Squire

Saving user content to XML aka How to Remove Invalid Characters in UTF-8

Error Contains None UTF-8 Content… Bleh When encoding use content to XML there are often issues that occur… 99.9% of the time stemming from users copy-pasting from MSWord in to text boxes and all the odd characters being carried through. PHP will play dumb and happily save this, then winge like a b’tch about displaying … Read on Squire