dcsimg
conversion of a symmetric key
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   name1_name2
Posted On:   Thursday, November 21, 2002 04:29 AM

I want to encipher a symmetric key with an assymetric public key.
The problem is that the method Cipher.doFinal does not
encrypt a Key object but array of bytes.
Can anyone tell me how to covert the symmetric key to
an array of bytes.

Re: conversion of a symmetric key

Posted By:   Eugene_Kuleshov  
Posted On:   Thursday, November 21, 2002 07:13 AM

Key.getEncoded() will return you an array of bytes that represents key matherial.
About | Sitemap | Contact