Archive

Archive for February, 2009

Sorting artists by first/last name in iTunes

February 24th, 2009 3 comments

picture-1Until 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.

Categories: tips Tags: , , ,

AES interoperability between .Net and iPhone

February 12th, 2009 48 comments

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.

Download zip.