Artenus 2D Framework
Artenus Reference

Interface used to allow application authors to obfuscate licensing data that will be stored into a SharedPreferences file.

Any transformation scheme must be reversible. 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.

public interface Obfuscator

Method Summary

Modifier and TypeMethod and Description
public Stringobfuscate(String original, String key)
Obfuscate a string that is being stored into shared preferences.
public Stringunobfuscate(String obfuscated, String key)
Undo the transformation applied to data by the obfuscate() method.

Method Detail

obfuscate
public String obfuscate(
    String original,
    String key
)
Obfuscate a string that is being stored into shared preferences.
Parameters:
originalThe data that is to be obfuscated
keyThe key for the data that is to be obfuscated
Returns:
A transformed version of the original data
unobfuscate
public String unobfuscate(
    String obfuscated,
    String key
)
Undo the transformation applied to data by the obfuscate() method.
Parameters:
obfuscatedThe obfuscated data.
keyThe key for the data that is to be obfuscated
Returns:
A transformed version of the original data
Throws: