-
Notifications
You must be signed in to change notification settings - Fork 4
String Usage
Efra Espada edited this page May 1, 2021
·
4 revisions
String obfuscated = Stringcare.obfuscate("hello there π");
String revealed = Stringcare.reveal(obfuscated);
print(revealed); // prints "hello there π"
More simple:
var obfuscated = "hello there π".obfuscate();
var revealed = obfuscated.reveal();
print(revealed); // prints "hello there π"
String p1 = "dsgfjkbndsgfbldsgbdjns";
String p2 = "sfvsfdgvsdfvsfdvsfvsrf";
String p3 = "dtlbkjdnsfvsftrglbjknd";
String obfuscated = Stringcare.obfuscateWith([p2, p1, p3], "hello there π");
String revealed = Stringcare.revealWith([p1, p3, p2], obfuscated);
print(revealed); // prints "hello there π"
With extensions:
var p1 = "dsgfjkbndsgfbldsgbdjns";
var p2 = "sfvsfdgvsdfvsfdvsfvsrf";
var p3 = "dtlbkjdnsfvsftrglbjknd";
var obfuscated = "hello there π".obfuscateWith([p2, p1, p3]);
var revealed = obfuscated.revealWith([p1, p3, p2]);
print(revealed); // prints "hello there π"