Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1804

Re: C# RijndaelEnhanced decrypt with php mcrypt

From Trevor <trevorREMOVE@holyoak.com>
Newsgroups comp.lang.php
Subject Re: C# RijndaelEnhanced decrypt with php mcrypt
Date 2011-05-23 11:17 -0600
Organization A noiseless patient Spider
Message-ID <ire4r2$fap$1@dont-email.me> (permalink)
References <4dd63095$0$6547$9b4e6d93@newsspool4.arcor-online.net>

Show all headers | View raw


This is somewhat similar to a problem I faced last week. I ended up 
putting the functionality I needed into a custom assembly and then using 
this to call it from PHP: http://universalccw.sourceforge.net/

- Trevor

On 5/20/2011 3:12 AM, Heiko GreenRover Henning wrote:
> hi
>
> i have a C# .net app with i decompiled. This app uses for login password
> cryption:
> http://www.obviex.com/samples/Sample.aspx?Source=EncryptionWithSaltCS&Title=Encryption%20With%20Salt&Lang=C%23
>
>
> C# Code
> rijndaelKey = new Krypto.RijndaelEnhanced(passPhrase, initVector);
> PlainPassword =
> DiverseVariablen.rijndaelKey.Decrypt(Conversions.ToString(row["ProjectKennwort"])))
>
>
>
> I have pass and iv.
>
> How can i decrypt the passwords in php? I tryted allready several
> variants of mcrypt_decrypt().
>
> Didt somene have a idea?
>
> Wha i dont understand is that the iv has 16 chars but it should be an
> 256b encryption with normaly depends a 32chars iv.
>
> I also allready tryed a http://phpseclib.sourceforge.net/ for decryption
> without any success.
> http://pastebin.com/SKPG7gR2
>
> Friendly regards and big thanks.
>

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

C# RijndaelEnhanced decrypt with php mcrypt Heiko GreenRover Henning <greenrover@arcor.de> - 2011-05-20 11:12 +0200
  Re: C# RijndaelEnhanced decrypt with php mcrypt Michael Vilain <vilain@NOspamcop.net> - 2011-05-20 15:39 -0700
    Re: C# RijndaelEnhanced decrypt with php mcrypt Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-21 23:06 +0200
      Re: C# RijndaelEnhanced decrypt with php mcrypt Heiko Henning <greenrover@arcor.de> - 2011-05-24 12:58 +0200
        Re: C# RijndaelEnhanced decrypt with php mcrypt Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-24 23:29 +0200
  Re: C# RijndaelEnhanced decrypt with php mcrypt Trevor <trevorREMOVE@holyoak.com> - 2011-05-23 11:17 -0600
    Re: C# RijndaelEnhanced decrypt with php mcrypt Michael Vilain <vilain@NOspamcop.net> - 2011-05-23 10:35 -0700

csiph-web