For simplicity of code and understanding, I'd go with a simple stream cipher like RC4. What are your requirements? How secure does it need to be? Is it to be platform independent (Windows has had a cryptoAPI for some time now which makes things much easier)?