Good cryptography/encryption books
http://www.schneier.com/book-practical.html
And please don't use your pseudo-encryption algorithm for anything more important than your own love letters. It's probably best not to use your own implementations of standard algorithms either.
The handbook of applied cryptography is worth to read, especially chapter 14. http://www.cacr.math.uwaterloo.ca/hac/
Here is Cryptography for Developers and Cryptography in C and C++ books which I advise you much