I have written a simple java class that encrypts strings, I need to pass in
some strings and return an array of strings.
Am I missing something? What else is necessary to use this class in CF? 

Encrypt.class
------------------------------------
import java.util.*;
import BlowfishJ.*;

public class Encrypt {
  private String key  = "macromedia";
  private String[] getEncryptedData(String[] args)
  {
     String[] se = new String[args.length];
     BlowfishEasy bfe = new BlowfishEasy(this.key);
     for (int i=0; i<args.length; i++) {
        se[i] = bfe.encryptString(args[i]);
     }
    return se;
   }
}
--------------------------------------
<CFSET ccName   = "Dave">
<CFSET ccType   = "VISA">
<CFSET ccNumber = "1111222233334444">
<CFSET ccExpir  = "08/2003">
<CFSET ip       = "66.153.203.151">
<CFOBJECT type="java" action="create" class="webencryption.Encrypt"
name="CC">
<CFSET rs_encrypted = CC.getEncryptedData(ccName, ccType, ccNumber, ccExpir,
ip)>
<CFDUMP var="#rs_encrypted#">

Thanks,
Dave



HTC Disclaimer:  The information contained in this message may be privileged and 
confidential and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any dissemination, distribution 
or copying of this communication is strictly prohibited.  If you have received this 
communication in error, please notify us immediately by replying to the message and 
deleting it from your computer.  Thank you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to