Hi Mark and Denstar-- Thanks so much for your help! I finally figured it out... In the end, it was just a matter of getting the padded string into the encrypt function in a way that would give identical results. I'm still not entirely sure why this works (and why I didn't try it before...), but it does:
<!--number to be encrypted--> <cfset str = 9876543219876543> <!--add padding--> <cfset str = str & toString(binarydecode(000000000000000000000000000000, 'Hex'))> <!--last byte contains total number of padding bytes--> <cfset str = str & chr(16)> Incidentally, this padding method is number three here: http://www.di-mgt.com.au/cryptopad.html (a great explanation of all of the different padding methods) Thanks again! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331807 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

