AES 256-bit keys and Coldfusion

AES 256-bit keys and Coldfusion

This week seams to be the Java week. Just yesterday I’ve posted about my experience on installing Java 7 on MacOS X 10.8.2 and today comes another Java one. This time, it is about the 256-bit AES keys and Coldfusion (well my choice is the open source CFML engine called OpenBD).

Since I’m working currently on a project that needs to exchange sensitive data with a third party we obviously would like to protect the data with the strongest key, so a AES 256-bit key has been chosen. While the key was valid, my code always threw a “Illegal key size” error message.

As it turns out, this was due that Java did not have the “Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7” bundles installed. Apparently they are needed for any stronger keys then 128-bit keys. You can get the Unlimited Strength bundles from the Oracle site. Installing them is as “simple” as dumping them to the “$JAVA_HOME/lib/security” directory.


While the above seams to be obvious on Linux and Windows I’ve had a hard time to get the correct installation on MacOS X. Somehow this is hidden far down in the paths and not at all obvious. But the correct location to store the security JAR’s is at “/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/jre/lib/security/”.

Hope this helps anyone out there 🙂

Trusted by over 2,000 organizations with millions of emails

Helpmonks helps us answer customer emails at lighting speed
We couldn't do our job without Helpmonks!
Helpmonks, the best thing since sliced bread
Excellent option for collaborating email amongst your team
A good platform that is here to grow and help you grow
Helpmonks is a great tool that our company utilizes and depends on
Great shared inbox for the team
Fantastic email support service for any business
Easy to navigate and catalog data for specific users
Solid Helpdesk software w/ responsive customer support
A really good solution to manage customer support mailbox
Good support, useful features

One more thing...

Helpmonks gives you the ability tocollaborate as a groupin your shared mailbox, features aTeam To-Do App, powerfulCustomer Relationship Management (CRM)capabilities, a completeLive-Chat tool, a mighty Email Marketing Platform that includes sending ofemail campaignsandemail automation, collision detection, email tracking, reminders, mentions, custom fields, custom applications, customer satisfaction ratings, Single-Sign-On (SSO) & SAML authentication, Trello, Zapier, Slack, an API, and much more.

Check outthe complete feature listor sign up for afree 30-day shared inbox trial now