# HELP : JCE : How to use KeyPairGenerator with Cipher

Narendra Patil (naren@corp.auspex.com)
Tue, 09 Jun 1998 12:04:06 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: Help !!"
- Previous message: Jan Luehe: "Re: Smartcards!"

    Message-Id: <3.0.1.32.19980609120406.00a80390@mailhost.auspex.com>

    Date: Tue, 09 Jun 1998 12:04:06 -0700

    To: java-security@web3.javasoft.com

    From: Narendra Patil <naren@corp.auspex.com>

    Subject: HELP : JCE : How to use KeyPairGenerator with Cipher

Hello,

Can I use the public and private keys obtained from a pair (which is
generated by a KeyPairGenerator)
for initializing the Cipher object ?

Basically I would like to encrypt the data using the public key (from the
pair) and decrypt
using the private key.

Is this possible ? How can I do this ?

Thanks in advance.

Narendra

- Next message: Marianne Mueller: "Re: Help !!"
- Previous message: Jan Luehe: "Re: Smartcards!"