obfuscateWith method
Obfuscates(hide) a provided text. The result may be obtained using getResult() method. Use unobfuscate() method to reveal the text.
param textToObfuscate to obfuscate. Must not be null nor empty. return this object for chaining.
Implementation
DummyCastle obfuscateWith(String textToObfuscate) {
if ((textToObfuscate == null) || textToObfuscate.isEmpty) {
exception = new Exception("Empty or null argument");
error = true;
return this;
}
try {
resultBytes =
ObfuscateClient.obfuscate(Coder.getBytesSimple(textToObfuscate));
} on Exception catch (e) {
setUpError(e);
}
return this;
}