Ask a Question related to ASP.NET Security, Design and Development.
-
Lech Migdal #1
encrypt with TripleDES, decrypt with DES, doesnt work ?
Hi
I have such a problem - I've tried to encrypt a file with TripleDES and then
decrypt it with DES, but failed.
AFAIK, TripleDES uses 3x DES (EEE), so decrypting it with DES should be
possible.
I've tested DES and it is ok (encrypts and decrypts file without problem).
The passwords provided
and IV are the same. (for the TripleDES I give 24 bytes of password, to DES
I give password bytes 1 to 8, 9 to 18 and 19 to 27)
So maybe TripleDES is doing something with the password that I am not aware
of ?
thanks in advance
LM
Lech Migdal Guest
-
How do I Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET)?
How To: Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET) The code below demonstrates how to call Data Protection API (DPAPI) functions... -
FormsAuthentication Encrypt/Decrypt Problem/Issue
I'm using the C# sample from MSDN on how to authenticate against an active directory. What I notice is that I get the list of groups placed in the... -
Urgent Help on CAPICOM Decrypt and Encrypt
Dear all, I'm new to CAPICOM not sure how to use it in C# Web application. As I know, CAPICOM does have a function to decrypt and encrypt some... -
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... -
Decrypt / Encrypt Session objects
Hi! I just want to know if it's common to decrypt a Session-Object in a ASP.NET application. My collegue says that I have not do this because the... -
Hernan de Lahitte #2
Re: encrypt with TripleDES, decrypt with DES, doesnt work ?
In fact the process is not that simple as to pass three times with DES using
the key splitted in three parts. These two algorithms are block ciphers and
basically they process the data in blocks of a fixed size at a time. The
3DES algorithm process each block 3 times, each of them with a different
part of the 24 bytes key (3 x 8). When you decrypt with DES, you are
processing all the cipher data with each key part, so this way you are not
getting the same output as 3DES because you are not processing each block at
a time.
Regards,
Hernan.
--
Hernan de Lahitte
Lagash Systems S.A.
[url]http://weblogs.asp.net/hernandl[/url]
Shadowfax Dev Team
This posting is provided "AS IS" with no warranties, and confers no rights.
"Lech Migdal" <xnts@o2.pl> wrote in message
news:c50npe$k5i$1@news.onet.pl...then> Hi
>
> I have such a problem - I've tried to encrypt a file with TripleDES andDES> decrypt it with DES, but failed.
> AFAIK, TripleDES uses 3x DES (EEE), so decrypting it with DES should be
> possible.
>
> I've tested DES and it is ok (encrypts and decrypts file without problem).
> The passwords provided
> and IV are the same. (for the TripleDES I give 24 bytes of password, toaware> I give password bytes 1 to 8, 9 to 18 and 19 to 27)
>
> So maybe TripleDES is doing something with the password that I am not> of ?
>
> thanks in advance
> LM
>
>
>
Hernan de Lahitte Guest



Reply With Quote

