Posts Tagged: AES

AES encryption strategies with .Net

Posted by & filed under code.

I did a presentation last week on AES encryption techniques in .Net. I’ll post some details here later, but for now, I’ve uploaded a zip file with the project code. Here’s the key bit:   string key = "1234567891123456"; string secret = @"This is a secret.";   Console.WriteLine("basic:"); EncryptString(key, secret); Console.ReadKey();   Console.WriteLine("salt the secret:"); […]

AES interoperability between .Net and iPhone

Posted by & filed under code.

One of my projects requires encrypting data on the iPhone and decrypting it using .Net. This is easy to do with the Common Crypto library in the iPhone SDK and the AesCryptoServiceProvider class in .Net, but the encryption parameters have to be the same for it to work. I couldn’t figure it out, but the […]