Encrypting files on MacOSX

Encryption of models and tracking configurations on Mac OS can be either done using the command line tool Crypter, located in the 'tools' directory or using an Automator action.

Prerequisites: Wibu Key runtime-kit and license file

The encryption/decryption system requires an attached WIBU Key, which is a USB dongle. This key should have been shipped to you by metaio.

To set up the Wibu Key, please install the Wibu Key runtime-kit on your system. The installer for this is included in the SDK ( UnifeyeSDKMobile/External ) - otherwise it is available for download here.

The license consists of an XML file and a signature file. These should have been provided to you by metaio. It contains the UDIDs or IMEI numbers of your development and testing phones. We recommend placing the license file into the 'tools' directory.

Using the command line tool directly

The crypter tool takes the following arguments:

Crypter -e <INPUTFILE> <OUTPUTFILE> 03_SDK2.pem 3 <LICENSEFILE>

an example usage for encrypting a tracking configuration could look like this:

Crypter -e TrackingData.xml TrackingData.xml_enc 03_SDK2.pem 3 LicenseFile_Yourcompany.xml

Decryption can be done accordingly using the -d flag and providing the 03_SDK2_public.pem key as argument.

Using automator for encryption

Encrypting files can also be done using an Automator action, that has to be configured once and can be then reused to encrypt all files. The following section will show how to configure the action and how to use it.

Make sure Wibukey driver is installed

  • Install the Wibu Key runtime-kit from UnifeyeSDKMobile/External

Set up Automator action

  • Locate the 'encrypt' workflow in the UnifeyeSDKMobile/tools directory.
    Screen_shot_2010-07-07_at_3.18.26_PM.png

  • Open the 'encrypt' workflow. This will bring up an Automator window.
    Screen_shot_2010-07-07_at_3.19.04_PM.png

  • Specify the absolute path to your 'tools' directory and the absolute path to your license file. Hint: you can drag-and-drop a path from Finder directly into Automator.
    Screen_shot_2010-07-07_at_3.20.24_PM.png

  • Save the Automator Workflow as an Application by selecting: File -> Save As, enter a filename and select 'Application' as File Format.
    Screen_shot_2010-07-07_at_3.21.37_PM.png

This will create an executable file that will take a file as input and encrypt it.

How to encrypt files

  • Just drag-and-drop your input-files onto the Automator Application that you have created before.
    Screen_shot_2010-07-07_at_3.24.29_PM.png Screen_shot_2010-07-07_at_3.25.55_PM.png

  • The output of the application will be written into the same directory as the original file.
    Screen_shot_2010-07-07_at_3.26.11_PM.png

  • For convenience you can also position this application in your Dock, so it's easily accessible.
    Screen_shot_2010-07-07_at_3.28.11_PM.png

How to decrypt files

Follow the steps above, just use the 'Decrypt' workflow instead of the 'encrypt' one.

-- SupportMetaio - 2010-07-07

Topic revision: r7 - 2010-08-31 - 17:25:34 - SupportMetaio
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback