Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
SilentBob'secretfusion #1
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
-
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... -
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... -
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... -
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... -
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... -
blewis #2
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
-
SilentBob'secretfusion #3
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
-
blewis #4
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
-
SilentBob'secretfusion #5
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
-
blewis #6
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



Reply With Quote

