Objective-C crypting functions using CommonCrypto for encrypting and decrypting data, check if password is correct and save crypted data in a xml(/plist)-like file