add file encryption to the framework