• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFEncrypt/Decrypt Interoperability

New Here ,
Aug 10, 2006 Aug 10, 2006

Copy link to clipboard

Copied

I am able to encrypt and decypt in CF, even using, Salt, IV, Iterations, encoding in Hex, Base64,UU..this all works, but only if the encrypting and decrypting is done in CF.

Once I Encrypt in another language for instance .NET, have tried a few other open source DLL's out there as well, Coldfusion cant encrypt it. I get messages like Input string isnt the same encoding as output string, Given final block not properly padded or byte array cannot be converted to string.

As well Vice versa...if I encrypt in CF, I cant Decrypt in anything else.


Its as if CF is using is using some real off the wall defaults I cant figure out and no other language can decrypt. For the most part other languages encrypt in bytes and then convert to Base64 for storage.

Any ideas?
TOPICS
Advanced techniques

Views

559

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 15, 2006 Aug 15, 2006

Copy link to clipboard

Copied

ok let me re ask this question in a more general manner, maybe someone can asnwer.

Has anyone ever encrypted something in another language and decrypted it with coldfusion, or has anyone encrypted something in coldfusion and sucessfully decrypted it in another language?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 15, 2006 Aug 15, 2006

Copy link to clipboard

Copied

michin wrote:
> I am able to encrypt and decypt in CF, even using, Salt, IV, Iterations,
> encoding in Hex, Base64,UU..this all works, but only if the encrypting and
> decrypting is done in CF.
>
> Once I Encrypt in another language for instance .NET, have tried a few other
> open source DLL's out there as well, Coldfusion cant encrypt it. I get
> messages like Input string isnt the same encoding as output string, Given final
> block not properly padded or byte array cannot be converted to string.
>
> As well Vice versa...if I encrypt in CF, I cant Decrypt in anything else.
>
>
> Its as if CF is using is using some real off the wall defaults I cant figure
> out and no other language can decrypt. For the most part other languages
> encrypt in bytes and then convert to Base64 for storage.
>
> Any ideas?
>

It is way over my head, but I found this technote that gives more
detailed usage information CF's (the latest version) encrypt and decrypt
functions. I see several headings talking about what to do to help CF
work with other software.

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=e546373d

HTH

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 15, 2006 Aug 15, 2006

Copy link to clipboard

Copied

LATEST
Thanks. Ya I saw the technote also. Unfortunately the technote doesnt address interoperability in detail. It just kind of says it can be done , gives the possible tags to use and thats about it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation