Hi all, so i'm running into a bit of an issue that maybe someone can shed some
light on. i'm trying to DES encrypt a variable (no file i/o) and everything
should be working except that it appears that CF cant run 'init()' when there
are multiple constructors defined. o BTW, i'm using CFMX 6 (no hope for
upgrading to 7)
here's an example of my code for you guys to pick apart:
<cfobject action="create" type="Java" class="javax.crypto.Cipher" name="Cipher">
<cfset ecipher=Cipher.getInstance("DES")>
<cfset mymode=Cipher.ENCRYPT_MODE>
<cfset ecipher.init(Cipher.ENCRYPT_MODE, mykeyOCT)> <!-- error here -->
<cfset mydata=ecipher.doFinal(toBinary(randomNumber))>
<cfoutput>#mydata#</cfoutput>
this is just an excerpt, the way the key is generated etc has been left out to
minimize complexity...
am i missing something?
Thanks in advance for your help!
-Chris
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210505
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54