Until today, I was very confused by the fact that iTunes sorted some of my artists by last name and some by first name. Then I figured out why – when editing the mp3/aac meta tags, you can specify custom sort fields. To change the sort field, select one or more songs, right-click and Get Info. Then select a sort artist or other sort fields in the Sorting tab.
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 geniuses at StackOverflow did, so I am posting my results here. The zip file includes a basic iPhone app and a .Net console project with helpful classes to do the encryption/decryption and base64 conversion. I didn’t write most of the code – thanks to Blue Beetle for the .Net code and Greg Haygood for the Objective C.