Multi platform data protection
- All the sensitive settings should be encrypted in the configuration file
- The decryption keys should be stored in environment-variables
Then the application should decrypt the settings on the fly, when it needs those.
How can I encrypt my data using apple's data protection API?
Enable Data protection
Create an entitlements plist with your chosen encryption type.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DataProtectionClass</key>
<string>NSFileProtectionComplete</string>
</dict>
</plist>
Related Topics
Find the Pid of a Java Process Under Linux
Benefits/Drawbacks to Running 64-Bit Jvm on 64-Bit Linux Server
How to Set Up Sublime Text 3 to Run and Compile Java on Linux
No Swt-Mozilla-Gtk-4332 in Java.Library.Path
Java File Locking Mechanism for File Based Process Communication
Load Native Libraries in an Eclipse Rcp Application on Linux
The Encoding 'Utf-8' Is Not Supported by the Java Runtime
Making a Java Package in the Command Line
How to Include Platform-Specific Native Libraries in the .Jar File Using Eclipse
Is a Java Filelock a Posix Advisory (Fcntl) Lock
Certificateexception: No Subject Alternative Names Present
Need a Client Side API for Determing Geo Location of Ip Addresses