A Demonstration of Encrypted Socket Support in AIR 2

I’ve been wanting to write my own email notifier in AIR for a long time, but without support for encrypted sockets, it wasn’t easy to do. But now that AIR 2 added the new SecureSocket class, I was able to write a pretty functional email notifier in just a couple of days:

The new SecureSocket class extends Socket, so MenuMail can use either encrypted or non-encrypted sockets without really having to know the difference:

this.socket = (this.secure) ? new SecureSocket() : new Socket();

The MenuMail application, and all the code for MenuMail, will be available on Adobe Labs after the AIR 2 public beta launch (which is very close!).