more work on encryption