Hi Leigh,

I noticed that, and I tried that. I tried:

<cfset publicKey_string = ToBase64(publicKey.getEncoded())>

But, later, if I try to call encrypt and pass it that publicKey_string, it
fails because the encrypt() function expects the java object.

Brook

-----Original Message-----
From: Leigh [mailto:[email protected]] 
Sent: February-10-11 3:10 PM
To: cf-talk
Subject: RE: cfx_pwtextcrypt & CF9


> I can't figure out how to get public/private key strings from that and 
> use those to encrypt/decrypt data.  Anybody know?

IIRC, key.getEncoded() returns the bytes which you can encode as hex or
however you want

-Leigh




     



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342134
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to