Im fully aware that my code isin't very secure, i just do this to experiment mostly. I might try other tested encryption technique too when i have the time, i just love to do everything in my projects by myself, that's all.
If learning is the goal, go read books like Applied Cryptography by Bruce Schneier.
You will learn far more by reading books about crypto than by toying around on your own.