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