add encrypt support and save to file
Merge pull request #1 from rphillips/feat/encrypt

add encrypt support and save to file