I am trying to demonstrate to my boss that data encrypted using the ColdFusion encrypt() using AES encryption can be decrypted by other systems/languages using the same key. (At least I hope I can demonstrate this)
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
To match this result using another technology, I am trying to use the Java Bouncy Castle API for JCE from within ColdFusion. Here is where I am 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?
--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz
----------------------------------------------------------
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]
- [CFCDev] Has anyone used the Bouncy Castle API with CF? Dave Shuck
