Set permissions after encrypt/decrypt