added file encryption
fixed failing tests on ruby 1.8.7
Merge pull request #12 from heisam/master

Added file encryption