adding public key for encryption