I'm very tired now, but at the first view i'll say that your program is very simple, and encrypts only a text that is included in the 'a' - 'z' charset. Probablly is not too hard to decrypt, but for me this will be a litle bit long time because i'll use a bactracking generation that will give me a large number of results.