Skip to content

Instantly share code, notes, and snippets.

@ThinkDigitalSoftware
Created November 15, 2018 08:07
Show Gist options
  • Save ThinkDigitalSoftware/34252a9fb32215ae7fbfa8f53ee3a642 to your computer and use it in GitHub Desktop.
Save ThinkDigitalSoftware/34252a9fb32215ae7fbfa8f53ee3a642 to your computer and use it in GitHub Desktop.
number_obfuscation
main(){
String number = "3231234545";
String xedNumber="";
for(int i = 0; i < number.length; i++){
if(i > 2 && i< number.length - 2)
xedNumber += "x";
else
xedNumber += number[i];
}
print(xedNumber);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment