rijndael

How to encrypt in VBScript using AES?

I am looking to encrypt some data using Rijndael/AES in VBScript using a specific key and IV value. Are there any good function libraries or COM components that would be good to use? I looked at CAPICOM; it allows a passphrase only, and won't allow setting specific key and IV values. ...

Strange Error in .net Application. - RijndaelManaged..

During a recent load test, I've been getting some strange "Index Out of Range Exception" Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at System.Security....

Encryption algorithm/library for .NET 2.0 + C++

I need a standard, Microsoft delivered, encryption library that works for both .NET 2.0 and C++. What would you suggest? We find that AES is only offered in .NET 3.5 (and available in C++) We find that Rijndael is used in .NET 2.0 but not available in the standard C++ libraries. If I am wrong (very good chance), can you point me in th...

Decrypting RijndaelManaged Encrypted strings with CryptDecrypt

Ok I'm trying to use the Win32 Crypto API in C++ to decrypt a string encrypted in C# (.NET 2) with the RijndaelManaged Class. But I'm having no luck at all i get jibberish or a bad data Win32 error code. All my keys, IV and salt match, I've looked in the watch for both test apps. I've spent all say looking at it and I'm officialy stuc...

Rijndael support in Java

We have a requirement to do some Rijndael development in Java. Any recommendations for articles, libraries etc. that would help us? Any pointers to keystore maintenance and how store the keys securely? Edit: It would need to be open source. Essentially, it's just standard encrypt / decrypt of data using Rijndael. ...

Rijndael / AES from C# to VB6

Hello, I need to encrypt a byte array in VB6 and decrypt it in C# (NET 2.0). And viceversa (C# to VB6). In C# I used RijndaelManaged class. In VB6 I used free pieces of from Internet. The best seems to be http://www.frez.co.uk/freecode.htm#rijndael But the two implementations generate different outputs starting from the same input :( ...

When will C# AES algorithm be FIPS compliant?

Right now the only way I can get the RijndaelManaged algorithm to work on a computer with the Local Security Setting for FIPS turned on, is to disable it. It is a government computer, so I'm not sure how that will fly. I've seen posts on the msdn blog sites that say they are working on an AES FIPS compliant version, but I cant seem to ...

Specified initialization vector (IV) does not match the block size for this algorithm.

I am working on a base encryption method. I am using RijndaelManaged. I got this code from somewhere a long time ago, but can't remember where. I had my code working before, but something changed and I cannot quite figure it out. When I run my code, I get the following error; Specified initialization vector (IV) does not match th...

Calculate maximum size for encypted data

Is there any way to calculate the largest outcome from an Rijndael encryption with a fixed array lenght? Encryption method: RijndaelManaged Padding: PKCS7 CipherMode: CBC BlockSize 128 KeySize: 128 I need this as im converting a database where all string are going to be encrypted so i need to change the size of all string fields. ...

PHP & Silverlight Cryptography Chalenge!

OK, I give up. I have been trying to figure this out for weeks now. I think I will leave it to the crowd-sourcing machine. Can Somebody Please Make A PHP 5 Equivalent Of Anyone Of The 2 Classes Below? (I mean with that both encrypted Silverlight Cryptography Class 1: Public Class AES128Helper Public Password As String = Nothing ...

PHP Encryption & VB.net Decryption

I'm trying to do a simple task. Encypt a value in PHP and Decrypt it in my VB.net app. I figure I'd use tripleDES or Rijdael 128 or 256 I though this should be simple. Can anyone point me in the right direction? Thank you ...

Help using Rijndael Algorithm in Delphi 2007. Net

Hi, I'm working in Delphi 2007. Net, where I can find an example of using the Rijndael algorithm. Bye. ...

Public Overrides Function GetBytes() As Byte() is obsolete

What does the poet try to say? Public Overrides Function GetBytes() As Byte() is obsolete: Rfc2898DeriveBytes replaces PasswordDeriveBytes for deriving key material from a password and is preferred in new applications. Should i replace this one... Dim keyBytes As Byte() keyBytes = password.GetBytes(keySize / 8) ...with what? ...

Perl & Ruby exchange AES encrypted information

What is the equivalent to Crypt::CBC in Perl for Ruby? Note: This problem similar to PHP/Perl at stackoverflow:655691. Perl Version use Crypt::CBC; use MIME::Base64::Perl; my $cipher = Crypt::CBC->new( -key => "95A8EE8E89979B9EFDCBC6EB9797528D", -keysize => 32, -cipher => "Crypt::OpenSSL::AES" ); $encypted = $ci...

ASP.net rijndael decrypt - Length of data to decrypt

A lot of items I've found so far have been a bit vague or ... unspecific so I'm hoping to get an answer. I've got two little methods - easy ones that look as such... private const string initVector = "1234567890123456"; private const string SaltValue = "ThisIsMySaltValue"; private const int KeySize = 256; public static...

Password encryption/decryption between classic asp and ASP.NET

I have 2 websites: one written in classic asp and another written in ASP.NET (1.1 framework). Both applications use a login mechanism to validate user credentials based on a shared database table. Up to now passwords are stored in a 1-way MD5 hash, meaning people must be given a new generated password if they lose the old one. I now want...

C# rijndael stream writer issue

Just got some errors in code, which says the file is being used. What I need to achieve is add first part of encrypted data in file and then add second part of of evcrypted data in the same file. This file need to be decrypted later. I am pretty new to this field. Many thanks. Class3 cs3; StreamWriter sWriter; private void ...

c# AES CBC using 2 methods to add 2 pieces of encypted data into one file

The key issue is if I use a new cryptostream it will add new IV to second piece of data. Then this wont be ablt to decrypted. So I need to make sure the stream will use the last block of 1st data to encrypt the first block of 2nd piece of data. It comes up with the task of using same stream to encyprt 2 piece of data. But I couldn't fig...

A question about the key in AES

I saw some code like string password = "11111111"; Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(password,Encoding.ASCII.GetBytes("22222222")); RijndaelAlg.Key = key.GetBytes(RijndaelAlg.KeySize / 8); I can see the key is generated by Rfc2898DeriveBytes with passphrase and salt. Then AES retreive the key by GetBytes. But the questi...

AES encryption problem in Debug and Release mode

Hello There, I am using AES encryption algorithm (Rijndael implementation). I am using MS Visual Studio 2008 IDE for my development work. I could see a strange problem in my Debug and Release mode. When I encrypt a string in Debug mode it generates different bytes than Release mode. But fortunately decrypting will result same string. I ...