Make private key optional for 1-way encrypt