If you want to enable AES-192 and AES-256 on ColdFusion Enterprise...

If you want to enable AES-192 or AES-256 on ColdFusion 7/8/9 Enterprise, you will need to download the "Sun Unlimited Strength Jurisdiction Policy Files". The download can be found at the bottom of this page http://java.sun.com/javase/downloads/index.jsp. Once you download the .zip file, you will extract it to: [java-home]\lib\security. Then restart the ColdFusion services. More information about the update can be found at http://java.sun.com/javase/technologies/security/

If you run across this error: "The key specified is not a valid key for this encryption: Illegal key size", most likely it is because you need to install this security update. What I found was that AES with a 128 bit key worked fine, then with a 192 bit and 256 bit key it did not work. The only thing I could find about it was in ColdFusion 7 document located at http://kb2.adobe.com/cps/546/e546373d.html.

You would think Adobe would make sure this note was in the ColdFusion 8 and ColdFusion 9 documentation under the "Encrypt" function. But things get lost, it happens. And you might wonder why this is not in ColdFusion by default, but this is because of US Export rules not allowing certain types of encryption out of the United States.

Comments
Rapidshare SE's Gravatar Thanks for a nice idea. As for me I try to optimize my work as well as it is possible, that is why I follow all such posts.
# Posted By Rapidshare SE | 2/5/10 5:44 AM
Chris's Gravatar Awesome ive been trying to enable aes256 on http://www.rapidsloth.com without luck until now. much appreciated.
# Posted By Chris | 3/8/10 8:15 PM
ed hardy clothing's Gravatar Thanks for your post!
# Posted By ed hardy clothing | 6/7/10 5:25 AM
ED Hardy cheap's Gravatar I Will have to come back again when my class load lets up - however I am taking your RSS feed so I can read your site offline. Thanks.
# Posted By ED Hardy cheap | 7/13/10 1:08 PM
All star shoes's Gravatar Thanks for enjoying this article.
This is awesome, please keep writing.
Good post!As i was passing by here and i read your post.
# Posted By All star shoes | 7/29/10 1:36 PM
Gucci outlet's Gravatar This is awesome, please keep writing.
# Posted By Gucci outlet | 8/6/10 12:45 PM