Ian Bicking: the old part of his blog
Never, ever, write your own encryption algorithm and assume it's secure. It never is. Try using one of the existing, proven ones. And keep the key secure.
might be a good bet. It's faster than AES/rijndael, and pretty secure.
by Frederik De Bleser