I have a string as follows:
What about having just an array with the 36 characters in a random order? Something like a One-time pad encryption but with a fixed pad:
static String source="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
static String target="Q5A8ZWS0XEDC6RFVT9GBY4HNU3J2MI1KO7LP";
public static String obfuscate(String s) {
char[] result= new char[10];
for (int i=0;i
So a 10 characters string like "HELLO12345"
becomes "0ZCCF2MI1K"
. Obfuscated, but not encrypted