add encode bag function
Merge branch 'master' of github.com:actano/encrypted-databags