Fix Manifest permissions and add encryption key implementation.