Decrypt function and cfgrid

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Decrypt function and cfgrid

    Hi,

    I want to use the grid together with the decrypt function.
    so i have a grid populated from a query. and one column contains a encrypted
    value in my db. and i want to see it decrypted in my grid. but i can't seem to
    get my variable in the grid.

    Any chance you guys could help me out on this one. i searched the internet for
    that matter but until now no help.


    billy nasty Guest

  2. Similar Questions and Discussions

    1. Actionscript Function to Reload CFGrid
      I'm looking for some guidance on how to use actionscript to reload a cfgrid on an onclick event. I am currently using getURL() to call a cfc to...
    2. 3DES encrypt in vb.net with decrypt in classic asp
      Hello, We split a classic asp application into two apps as we start migrating to ..net. Now we have a need to pass encrypted data from the .net...
    3. Decrypt string encrypted with SHA1
      No, it is not possible. SHA1 is a hashing algorithm and as any other hashing algorithm (e.g. MD5, SHA-256, etc) it does not support decryption. ...
    4. Troubles with CAPICOM EnvelopedData.Decrypt
      I use EnvelopedData from CAPICOM library to encrypt and decrypt security info on my ASP site. I got and installed test VerySign certificate on my...
    5. PGP decrypt perl script
      Hello. I am in need of direction on where I might find a perl script that will automatically decrypt pgp files that have been FTP'd to a server. ...
  3. #2

    Default Re: Decrypt function and cfgrid

    Post the code you have and we shall see. How did you enrypt the data in the first place?
    Stressed_Simon Guest

  4. #3

    Default Re: Decrypt function and cfgrid

    to encode my string i do it like this
    <cfset ckey = "1a6">
    <cfset encryptCCNr = Encrypt(#Form.CCNumber#, ckey)>

    so now i want this encrypted value to be decrypted in my cfgrid.
    but because my grid is populated with a query.
    i cant get a variable in a column.

    for decrypting
    <cfset ckey = "1a6">
    #Decrypt(TravelCards.CCNumber, ckey)#

    thanks for the help

    greets Billy

    billy nasty Guest

  5. #4

    Default Re: Decrypt function and cfgrid

    hi,

    i found it out myself. maybe it can be useful to others.

    <cfform name="test" action="quer.cfm" format="flash">
    <cfgrid name="gried" rowheaders="true" height="300" insert="yes" delete="yes"
    insertbutton="Insert" deletebutton="Delete" selectmode="edit" width="400">
    <cfgridcolumn name="cc" header="cc" >
    <cfgridcolumn name="firma" header="Firma">
    <cfgridcolumn name="rid" header="id" display="no">
    <cfloop query="ts">
    <cfset ckey = "CFMX_COMPAT">
    <cfgridrow data="#Decrypt(ts.cc, ckey)#,#ts.firma#,#ts.rid#">
    </cfloop>
    </cfgrid>
    <cfinput type="submit" name="submit" value="submit">
    </cfform>

    billy nasty Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139