Craig328's Profile User Rating: *****

Reputation: 1926 Grandmaster
Group:
Expert w/DIC++
Active Posts:
3,472 (1.42 per day)
Joined:
13-January 08
Profile Views:
54,190
Last Active:
User is offline Sep 21 2014 09:44 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Jeep
Dream Kudos:
50
Expert In:
ColdFusion

Latest Visitors

Icon   Craig328 <cfloop from=1 to=infinity><cfif IsItFiveOClockYet(Now())><cfbreak></cfif></cffloop><cfset goHome = Now()>

Posts I've Made

  1. In Topic: encrypt and decrypt AES ECB 256

    Posted 16 Sep 2014

    So you're saying this is the part that's erroring?
    #encrypt(stFields,theKey,theAlgorithm,theEncoding)#
    


    If so, try this and see what you get:
    <cfset variables.encString = encrypt(stFields,theKey,theAlgorithm,theEncoding)>
    <cfdump var="#variables.encString#">
    <cfhttp url="https://www.vancodev.com/cgi-bin/wsnvptest.vps" method="post" charset="ISO-8859-1" throwonerror="yes" result="httpResponse">
    <cfhttpparam type="formfield"name="PostData" value="#variables.encString#"/>
    </cfhttp>
    
    


    Basically, encrypt the string outside of the cfhttpparam tag and see whether that errors or not. If that cfset errors then it is something to do with the encryption for certain.

    In cases like this, it helps to make sure you're targeting the correct piece of code for an error fix.
  2. In Topic: encrypt and decrypt AES ECB 256

    Posted 16 Sep 2014

    Try placing them inside the quotes:
    <cfset stFields ="{requesttype = 'eftaddonetimecompletetransaction'
    
    ,transactiontypecode = 'WEB'}"/>
    
    

    The two equal signs suggests that you're creating a literal string that will be evaluated elsewhere. The curly brackets then are probably also meant to be evaluated elsewhere as well.

    Try making those changes and see what you get.

    Edit: you'll also need to change all your double quotes to single quotes for anything inside the stFields variable.
  3. In Topic: encrypt and decrypt AES ECB 256

    Posted 16 Sep 2014

    Are you meaning to put the curly brackets in on lines 3 and 25?
  4. In Topic: encrypt and decrypt AES ECB 256

    Posted 16 Sep 2014

    Tell you what, I re-opened this in case I was being an ass. It happens frequently enough that I need to check myself. :)

    Do us a favor: describe the error you're getting. The way to troubleshoot a piece of code that's not working is to first describe the way it's not working.
  5. In Topic: encrypt and decrypt AES ECB 256

    Posted 15 Sep 2014

    You're kidding right?

My Information

Member Title:
I make this look good
Age:
Age Unknown
Birthday:
October 19
Gender:
Location:
Woodstock, GA
Full Name:
Craig
Years Programming:
14
Programming Languages:
ColdFusion, some ASP classic, HTML, Javascript, CSS, SQL...all that happy stuff.

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.eLuncher.com
Twitter:
craig328

Comments

Page 1 of 1
  1. Photo

    Craig328 Icon

    11 Mar 2013 - 08:08
    Vamsc443, go ahead and re-check the thread for my response. Also, please understand that everyone who is here helping devs on DIC does so in a volunteer fashion. We don't get paid to render assistance. We do it because we're nice folks trying to help others.
  2. Photo

    vamsc443 Icon

    11 Mar 2013 - 07:52
    Sorry Craig328
  3. Photo

    Craig328 Icon

    08 Mar 2013 - 07:28
    :rolleyes: Yep, I'll get right on that.
  4. Photo

    vamsc443 Icon

    08 Mar 2013 - 07:17
    hi Craig328 i have updated my code also.please look on that
  5. Photo

    Craig328 Icon

    14 Nov 2012 - 06:33
    Why? Did you switch teams?
  6. Photo

    BenignDesign Icon

    14 Nov 2012 - 05:13
    Can I be a lez friend, too?!?!?!
  7. Photo

    Craig328 Icon

    17 Aug 2012 - 06:45
    Only if you'll spoon me (but only when I want it).
  8. Photo

    no2pencil Icon

    17 Aug 2012 - 06:36
    Lez Be Friends?!
  9. Photo

    Craig328 Icon

    23 May 2012 - 12:09
    I am so your friend. Sad panda that!
  10. Photo

    BenignDesign Icon

    16 Dec 2011 - 12:55
    You are not my friend. Now I am a sad panda.
  11. Photo

    Craig328 Icon

    06 Jan 2011 - 12:12
    My dazzling repartee leaves people speechless?
    I dunno.
  12. Photo

    Alex6788 Icon

    06 Jan 2011 - 11:04
    Hey, thanks for adding me as a friend. How is it that you have zero comments?
Page 1 of 1