Helper functions for encryrption / decryption. Takes some of the manual labour out. Intended for Objective C projects (iOS/OSX), but mostly uses the CoreFoundation APIs.