public interface Obfuscator
Policy to allow application authors to obfuscate
licensing data that will be stored into a SharedPreferences file.
Any transformation scheme must be reversable. Implementing classes may optionally implement an integrity check to further prevent modification to preference data. Implementing classes should use device-specific information as a key in the obfuscation algorithm to prevent obfuscated preferences from being shared among devices.
String obfuscate(String original, String key)
original - The data that is to be obfuscated.key - The key for the data that is to be obfuscated.String unobfuscate(String obfuscated, String key) throws ValidationException
original - The data that is to be obfuscated.key - The key for the data that is to be obfuscated.ValidationException - Optionally thrown if a data integrity check fails.Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.