url encryption/encoding not decrypting correctly

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

  1. #1

    Default url encryption/encoding not decrypting correctly

    Hi,

    Encrypting URL using this sequence:

    <a
    href="tiercontrol.cfm?page=#urlencodedformat(encry pt("addmember",session.employe
    e.userid))#">

    i am decrypting with at the destination with this:

    #decrypt(urldecode(url.page),session.employee.user id)#

    However the decrypted variable is coming back WRONG. It is it is returning as
    addmg?ber


    Any ideas? Is this a know bug in 6.1mx?

    Thanks.

    SilentBob'secretfusion Guest

  2. Similar Questions and Discussions

    1. Bad Data CryptographicException when RSA decrypting
      Hi you try with this sample. I am not sure where the problem in your code. But you always yous UnicodeEncoding class. Here the working...
    2. decrypting key in EncryptedKey using X509SubjectKeyIdentifier
      Hi, I am trying to figure out how to retrieve the decrypted key from an <EncryptedKey> element. The <KeyInfo> has a X509SubjectKeyIdentifier...
    3. Reading/Decrypting ASP.Net auth cookie from ASP
      I have mixed ASP & ASP.Net sites. I want to read an encrypted FormsAuthenticationTicket from an ASP page (I already have multiple ASP.Net apps...
    4. Is there any asymmetric crypto API to allow decrypting a message but not encrypting it?
      I try to use RSA to implement the following scheme but wasn't sucessful. Sever encrypt a message using a public key, the client decrpyt the...
    5. Decrypting files
      Well I'm in a huge mess. I formated my computer and moved all my encrypted files onto a diff drive so I didn't have to burn them all to cd. Well...
  3. #2

    Default Re: url encryption/encoding not decrypting correctly

    I am not sure if this is a bug or not, but I have had similar problems with
    encrypted URL strings. I discovered the undocumented cfusion_encrypt() and
    cfusion_decrypt() functions that will return a URL safe string (numbers and
    letters only). MM apparently uses it for URL strings in the CF admin. Works
    perfectly for me.

    Bryan


    blewis Guest

  4. #3

    Default Re: url encryption/encoding not decrypting correctly

    Thanks for the the follow up. I will give this a try. It was strange. The
    earlier method was working until today when a certain url string caused it to
    bomb. Does this tag you found encrypt the url and urlencode it?

    Thanks.

    SilentBob'secretfusion Guest

  5. #4

    Default Re: url encryption/encoding not decrypting correctly


    These functions don't really need to URLencode anything, because their output is URL safe (numbers & letters only).

    Bryan
    blewis Guest

  6. #5

    Default Re: url encryption/encoding not decrypting correctly

    Ah very cool. I wonder how difficult this is to crack. Anyone ever try it?
    SilentBob'secretfusion Guest

  7. #6

    Default Re: url encryption/encoding not decrypting correctly

    I am not really sure, and given that they are unsupported, I doubt MM is going
    to tell you. :)

    Personally I would not use them for sensitive info: financial transaction
    stuff, etc. I just use them for encrypting database primary keys that I don't
    want people messing with.

    blewis 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