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:
Obj-C: https://github.com/dev5tec/FBEncryptor/tree/3c739f18c94ea257aba5cb7b6a97f49af2589977
Visual Basic: http://www.codeproject.com/Articles/15280/Cryptography-101-for-the-NET-Framework#_articleTop
When I encrypt with what I believe is AES 256-bit on each platform, I get completely different results. Here is an example:
-Keyword: Hello
-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.