Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Downloads
.NET 2.0
.NET 1.*
.NET x64
VC++ 6.0
VC++ 7.0
VC++ 8.0
Java
Ruby
Perl 5.8.*
Perl 5.10.*
Python
Bounce ActiveX
Charset ActiveX
Email ActiveX
FTP2 ActiveX
Crypt ActiveX
HTML-to-XML ActiveX
HTTP ActiveX
IMAP ActiveX
MHT ActiveX
MIME ActiveX
RSA ActiveX
Socket ActiveX
Spider ActiveX (free)
String ActiveX (free)
Tar ActiveX
Upload ActiveX (free)
XML ActiveX (free)
XMP ActiveX
Zip ActiveX

Index of Chilkat Blog Posts

February 25, 2008

Encrypt here, Decrypt there…

A common question is: I’m encrypting using on X, but wish to decrypt on Y. Is it possible? The answer is yes — only if all encryption parameters are identical. Here’s a summarized list:

(Assuming it is a symmetric encryption algorithm such as AES, Blowfish, Twofish, 3DES, RC2, etc.)

These input parameters must match on both encrypting and decrypting sides:

(1) Algorithm (AES, Blowfish, Twofish, 3DES, etc)
(2) Mode (CBC, ECB)
(3) Key Length (128-bit, 192-bit, 256-bit, etc.)
(4) Initialization Vector if CBC mode
(5) Binary Secret Key
(6) Padding Scheme (but only last block will differ if mismatched).

A more detailed explanation/example of matching encryption input/output.

Helpful hint: When trying to get two systems to interoperate, use test data that is more than one block long. This way, if all params are matching except the padding scheme, you’ll see that all output blocks are matching except the last one (where the padding differs).


Privacy Statement. Copyright 2000-2008 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.