The Bouncy Castle encryption provider at:

   http://www.bouncycastle.org/latest_releases.html

includes CAST5 and works fine with CF7 or CF8.  You want the signed 
bcprov*.jar which goes with your version of Java.

You will also need to get the "Unlimited Encryption Strength 
Jurisdiction Policy" files from the Sun download page at:
   http://java.sun.com/javase/downloads/index.jsp
   or http://java.sun.com/javase/downloads/previous.jsp
(depending on your Java version).

The TechNote at http://www.macromedia.com/go/e546373d explains how to 
install and use both the provider and the jurisdiction files with CF.

If you're decrypting something encrypted by other (non-CF) software, you 
will probably want to read all the TechNote details about feedback 
modes, padding, IV and Salt.

You'll also need the 128-bit key in Base64.  If you have the key in hex, 
you can convert it with:

<cfset b64Key = ToBase64(BinaryDecode(hexKey, "hex")) >

-tom-

J W wrote:
> I have a project that I have been handed that needs a piece encrypted in
> CAST128 (Cast5). Has anyone here worked with that encryption method? If so
> what is the best way to integrate that into Coldfusion.
> 
> Thanks!
> Jeff


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287015
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to