Notes on encryption