On Thursday 18 May 2006 15:42, Dave Shuck wrote:
> systems/languages using the same key.  (At least I hope I can demonstrate
> this)

Should be able too. I've used BC with a Delphi (urgh) other end fine - so the 
implementation is fine.

> For my test, I generated a key like this:
> myKey = generateSecretKey("aes");
> Then I encrypted a string using:
> encrypt(myString,myKey,"aes","hex"); // tried other encoding as well

You remembered to print out myKey first, right ? 
:-)

There is a MM technote about encrypt() that explains all the other options you 
need to put in (like IV) in order to be able to be compatable with other 
implementations.

> having a big stumbling block.  It appears that the key it uses is an object
> rather than a simple string.  Is there anyway to encrypt/decrypt using
> Bouncy Castle with the string key I generated within ColdFusion?

ISTR BC comes with many examples, there must be a simple 'decrypt this' there 
or on google ?
(guess)You need to call a constructor or utility method on the key object, and 
give that the string version of the key.

-- 
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to