I am using AES encryption (Rijindael) with Base-64 encoding in Obj-C and VB. I am currently using the following two projects to achieve this:
When I encrypt with what I believe is AES 256-bit on each platform, I get completely different results. Here is an example:
-Text To Encrypt (plain text): test
-Obj-C Result: 3V5u+L76l5sOOnlxzW7huA==
-VB Result: HR1TCsoEvFMDkdCjZui9Og==
Why are they so different if both claim to be the same type of encryption? Does this have to do with the IV?
Could someone point me in the right direction, or at least confirm that both are in fact using AES 256?
EDIT: I've re-written the VB code with Microsoft's Rijndael Managed frameworks and it looks a little something like this: http://codeupload.com/6319
However, the Obj-C version still doesn't want to decrypt the text. I believe that it is due to a difference in IVs because as you can see, I haven't figured out how to randomly generate an IV. Also note that the salt is NOT static even though a static variable still exists. The Salt is generated through the GenerateSalt method.