Notes on encryption private and public keys