title: Rijndael / AES from C# to VB6
body: <p>I need to encrypt a byte array in VB6 and decrypt it in C# (NET 2.0). And viceversa (C# to VB6).</p>
  
  <p>In C# I used RijndaelManaged class. In VB6 I used free pieces of from Internet. The best seems to be <a href="http://www.frez.co.uk/freecode.htm#rijndael" rel="nofollow noreferrer">http://www.frez.co.uk/freecode.htm#rijndael</a>
  But the two implementations generate different outputs starting from the same input  :(</p>
  
  <p>Perhaps it's a problem with the IV vector in RijndaelManaged ... I don't understand...</p>
  
  <p>Any solution / experience using Rijndael / AES between VB6 and NET ?   Or TripleDes....</p>
  
  <p>thank you</p>
  
  <p>UPDATE:  IMPORTANT: The machine where vb6 app runs, has not NET framework. So I cannot use Interop and/or a NET wrapper class exposed as COM. :( </p>