VB icon

In-line variables declare to obfuscated array

Email
Submitted on: 3/7/2017 10:14:53 AM
By: Zehel  
Level: Advanced
User Rating: Unrated
Compatibility: Java (JDK 1.5)
Views: 514
author picture
 
     Transforms a in-line variables declared type to obfuscated array.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
//**************************************
// Name: In-line variables declare to obfuscated array
// Description:Transforms a in-line variables declared type to obfuscated array.
// By: Zehel
//**************************************

//••••----------••••
// This one for rep and ad-mobless. Seen the pros feature-less of taking
// a in-line variables declare with commas and parsing it
// to an obfuscated array. This method will do that with any method.
// No regex, no fail. You will need to give the length of obfuscated
// name for the array(vNmLen.) Suggested, global int variable.
//_________________________________________________________________
// zandidigital1@gmail.com, Zehel .M., John 3:16
//_________________________________________________________________
private final String lclVarsRptCmToObfsctdRy2(String txt) {
StringBuilder sb1 = new StringBuilder(); StringBuilder sb2 = new StringBuilder();
String[] ________641_4_2020609__665_={"null","null","null"}; String[] strRy1 = null, strRy2 = null, strRy3 = null;
char[] fnlChrRy = txt.toCharArray(); char[] chrRy = null;
int[] _____74339_235491_6_9960={0,0,0,0,0,0,0,0,fnlChrRy.length,0,0,0,0,0};
Boolean[] ______7_8595_6590136_6017={true,false,false,false,false,false,false,false};
try { while(_____74339_235491_6_9960[12] < _____74339_235491_6_9960[8]) { if(fnlChrRy[_____74339_235491_6_9960[12]] == '{') { break;} _____74339_235491_6_9960[12]++;}
while(_____74339_235491_6_9960[0] < 8) { _____74339_235491_6_9960[1] = _____74339_235491_6_9960[12]; ______7_8595_6590136_6017[1] = false; ______7_8595_6590136_6017[2] = false; ______7_8595_6590136_6017[4] = false; ______7_8595_6590136_6017[5] = false; ______7_8595_6590136_6017[6] = false;
if(______7_8595_6590136_6017[0]) { ______7_8595_6590136_6017[0] = false;} else { txt = ________641_4_2020609__665_[0]; fnlChrRy = txt.toCharArray(); _____74339_235491_6_9960[8] = fnlChrRy.length;}
while(_____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]) { if(!______7_8595_6590136_6017[1]) {
if(_____74339_235491_6_9960[0] == 0 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-9) {
if((fnlChrRy[_____74339_235491_6_9960[1]] == 'b' || fnlChrRy[_____74339_235491_6_9960[1]] == 'B') && (fnlChrRy[_____74339_235491_6_9960[1]+1] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'l' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 'e' && fnlChrRy[_____74339_235491_6_9960[1]+5] == 'a' && fnlChrRy[_____74339_235491_6_9960[1]+6] == 'n' && fnlChrRy[_____74339_235491_6_9960[1]+7] == ' ')) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'b') { ________641_4_2020609__665_[0] = "boolean";} else { ________641_4_2020609__665_[0] = "Boolean";} _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true;}}
if(_____74339_235491_6_9960[0] == 1 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-11) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'C' && fnlChrRy[_____74339_235491_6_9960[1]+1] == 'h' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'a' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 'a' && fnlChrRy[_____74339_235491_6_9960[1]+5] == 'c' && fnlChrRy[_____74339_235491_6_9960[1]+6] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+7] == 'e' && fnlChrRy[_____74339_235491_6_9960[1]+8] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+9] == ' ') {
_____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true; ______7_8595_6590136_6017[5] = true; ________641_4_2020609__665_[0] = "Character";}}
if(_____74339_235491_6_9960[0] == 1 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-6) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'c' && fnlChrRy[_____74339_235491_6_9960[1]+1] == 'h' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'a' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+4] == ' ') {
_____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true; ______7_8595_6590136_6017[5] = true; ________641_4_2020609__665_[0] = "char";}}
if(_____74339_235491_6_9960[0] == 2 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-7) {
if((fnlChrRy[_____74339_235491_6_9960[1]] == 's' || fnlChrRy[_____74339_235491_6_9960[1]] == 'S') && (fnlChrRy[_____74339_235491_6_9960[1]+1] == 'h' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+5] == ' ')) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 's') { ________641_4_2020609__665_[0] = "short";} else { ________641_4_2020609__665_[0] = "Short";} _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true;}}
if(_____74339_235491_6_9960[0] == 3 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-9) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'I' && fnlChrRy[_____74339_235491_6_9960[1]+1] == 'n' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'e' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 'g' && fnlChrRy[_____74339_235491_6_9960[1]+5] == 'e' && fnlChrRy[_____74339_235491_6_9960[1]+6] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+7] == ' ') {
_____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true; ________641_4_2020609__665_[0] = "Integer";}}
if(_____74339_235491_6_9960[0] == 3 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-5) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'i' && fnlChrRy[_____74339_235491_6_9960[1]+1] == 'n' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+3] == ' ') {
_____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true; ________641_4_2020609__665_[0] = "int";}}
if(_____74339_235491_6_9960[0] == 4 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-8) {
if((fnlChrRy[_____74339_235491_6_9960[1]] == 'd' || fnlChrRy[_____74339_235491_6_9960[1]] == 'D') && (fnlChrRy[_____74339_235491_6_9960[1]+1] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'u' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'b' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 'l' && fnlChrRy[_____74339_235491_6_9960[1]+5] == 'e' && fnlChrRy[_____74339_235491_6_9960[1]+6] == ' ')) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'd') { ________641_4_2020609__665_[0] = "double";} else { ________641_4_2020609__665_[0] = "Double";} _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true;}}
if(_____74339_235491_6_9960[0] == 5 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-6) {
if((fnlChrRy[_____74339_235491_6_9960[1]] == 'l' || fnlChrRy[_____74339_235491_6_9960[1]] == 'L') && (fnlChrRy[_____74339_235491_6_9960[1]+1] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'n' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'g' && fnlChrRy[_____74339_235491_6_9960[1]+4] == ' ')) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'l') { ________641_4_2020609__665_[0] = "long";} else { ________641_4_2020609__665_[0] = "Long";} _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true;}}
if(_____74339_235491_6_9960[0] == 6 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-7) {
if((fnlChrRy[_____74339_235491_6_9960[1]] == 'f' || fnlChrRy[_____74339_235491_6_9960[1]] == 'F') && (fnlChrRy[_____74339_235491_6_9960[1]+1] == 'l' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'o' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'a' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+5] == ' ')) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'f') { ________641_4_2020609__665_[0] = "float";} else { ________641_4_2020609__665_[0] = "Float";} _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true;}}
if(_____74339_235491_6_9960[0] == 7 && _____74339_235491_6_9960[1] < _____74339_235491_6_9960[8]-8) {
if(fnlChrRy[_____74339_235491_6_9960[1]] == 'S' && fnlChrRy[_____74339_235491_6_9960[1]+1] == 't' && fnlChrRy[_____74339_235491_6_9960[1]+2] == 'r' && fnlChrRy[_____74339_235491_6_9960[1]+3] == 'i' && fnlChrRy[_____74339_235491_6_9960[1]+4] == 'n' && fnlChrRy[_____74339_235491_6_9960[1]+5] == 'g' && fnlChrRy[_____74339_235491_6_9960[1]+6] == ' ') {
________641_4_2020609__665_[0] = "String"; _____74339_235491_6_9960[4] = _____74339_235491_6_9960[1]; ______7_8595_6590136_6017[1] = true; ______7_8595_6590136_6017[6] = true;}}}
else { if(fnlChrRy[_____74339_235491_6_9960[1]] == ';') { _____74339_235491_6_9960[5] = _____74339_235491_6_9960[1]; _____74339_235491_6_9960[1] = _____74339_235491_6_9960[8];}
else { if(fnlChrRy[_____74339_235491_6_9960[1]] == ',') { ______7_8595_6590136_6017[4] = true;}}} _____74339_235491_6_9960[1]++;}
if(______7_8595_6590136_6017[4]) { sb1 = new StringBuilder(txt.substring(_____74339_235491_6_9960[4], _____74339_235491_6_9960[5]) + ",");
sb2 = new StringBuilder(removeSpc(sb1.toString()));
strRy1 = sb2.toString().split(",");
strRy2 = new String[strRy1.length]; strRy3 = new String[strRy1.length];
_____74339_235491_6_9960[2] = 0; _____74339_235491_6_9960[9] = strRy1.length;
while(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]) { chrRy = strRy1[_____74339_235491_6_9960[2]].toCharArray(); _____74339_235491_6_9960[3] = 0; _____74339_235491_6_9960[10] = chrRy.length;
sb1 = new StringBuilder(); while(_____74339_235491_6_9960[3] < _____74339_235491_6_9960[10]) { if(chrRy[_____74339_235491_6_9960[3]] == '=') { _____74339_235491_6_9960[3] = _____74339_235491_6_9960[10];}
else { sb1.append(String.valueOf(chrRy[_____74339_235491_6_9960[3]]));} _____74339_235491_6_9960[3]++;}
if(_____74339_235491_6_9960[2] == 0) { strRy2[_____74339_235491_6_9960[2]] = sb1.toString().substring(________641_4_2020609__665_[0].length(), sb1.length());}
else { strRy2[_____74339_235491_6_9960[2]] = sb1.toString();} _____74339_235491_6_9960[2]++;} _____74339_235491_6_9960[2] = 0;
while(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]) { chrRy = strRy1[_____74339_235491_6_9960[2]].toCharArray(); _____74339_235491_6_9960[3] = 0; _____74339_235491_6_9960[10] = chrRy.length;
sb1 = new StringBuilder(); ______7_8595_6590136_6017[2] = false;
while(_____74339_235491_6_9960[3] < _____74339_235491_6_9960[10]) { if(!______7_8595_6590136_6017[2]) {
if(chrRy[_____74339_235491_6_9960[3]] == '=') { ______7_8595_6590136_6017[2] = true;}}
else { sb1.append(String.valueOf(chrRy[_____74339_235491_6_9960[3]]));} _____74339_235491_6_9960[3]++;}
if(______7_8595_6590136_6017[2]) { strRy3[_____74339_235491_6_9960[2]] = sb1.toString();}
else { strRy3[_____74339_235491_6_9960[2]] = "null";} _____74339_235491_6_9960[2]++;}
________641_4_2020609__665_[1] = gVarNm(vNmLen); ________641_4_2020609__665_[2] = ________641_4_2020609__665_[1];
sb1 = new StringBuilder(________641_4_2020609__665_[0] + "[] " + ________641_4_2020609__665_[1] + "={");
_____74339_235491_6_9960[2] = 0; _____74339_235491_6_9960[9] = strRy3.length;
while(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]) { if(______7_8595_6590136_6017[5]) { if(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]-1) {
sb1.append("'" + strRy3[_____74339_235491_6_9960[2]] + "',");}
else { sb1.append("'" + strRy3[_____74339_235491_6_9960[2]] + "'}");}}
else { if(______7_8595_6590136_6017[6]) { if(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]-1) {
sb1.append("\"" + strRy3[_____74339_235491_6_9960[2]] + "\",");}
else { sb1.append("\"" + strRy3[_____74339_235491_6_9960[2]] + "\"}");}}
else { if(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[9]-1) {
sb1.append(strRy3[_____74339_235491_6_9960[2]] + ",");}
else { sb1.append(strRy3[_____74339_235491_6_9960[2]] + "}");}}} _____74339_235491_6_9960[2]++;}
________641_4_2020609__665_[1] = sb1.toString();
sb1 = new StringBuilder(txt.substring(0, _____74339_235491_6_9960[4]));
sb2 = new StringBuilder(txt.substring(_____74339_235491_6_9960[5], txt.length()));
________641_4_2020609__665_[0] = sb1.toString() + ________641_4_2020609__665_[1] + sb2.toString();
_____74339_235491_6_9960[1] = 0; _____74339_235491_6_9960[9] = strRy2.length; while(_____74339_235491_6_9960[1] < _____74339_235491_6_9960[9]) {
chrRy = strRy2[_____74339_235491_6_9960[1]].toCharArray(); _____74339_235491_6_9960[10] = chrRy.length; _____74339_235491_6_9960[2] = 0;
fnlChrRy = ________641_4_2020609__665_[0].toCharArray(); _____74339_235491_6_9960[11] = fnlChrRy.length; _____74339_235491_6_9960[8] = _____74339_235491_6_9960[11];
while(_____74339_235491_6_9960[2] < _____74339_235491_6_9960[11]) { try { _____74339_235491_6_9960[3] = 0; ______7_8595_6590136_6017[7] = false; ______7_8595_6590136_6017[3] = false;
while(_____74339_235491_6_9960[3] < _____74339_235491_6_9960[10]) { _____74339_235491_6_9960[13] = _____74339_235491_6_9960[2]+_____74339_235491_6_9960[3];
if(chrRy[_____74339_235491_6_9960[3]] == fnlChrRy[_____74339_235491_6_9960[13]]) { ______7_8595_6590136_6017[7] = true;
if(!______7_8595_6590136_6017[3]) { ______7_8595_6590136_6017[3] = true; _____74339_235491_6_9960[6] = _____74339_235491_6_9960[13];} else { _____74339_235491_6_9960[7] = _____74339_235491_6_9960[13];}}
else { ______7_8595_6590136_6017[7] = false; _____74339_235491_6_9960[3] = _____74339_235491_6_9960[10];}
_____74339_235491_6_9960[3]++;}} catch(Exception e) { ______7_8595_6590136_6017[7] = false;}
if(______7_8595_6590136_6017[7]) { ______7_8595_6590136_6017[7] = false;
sb1 = new StringBuilder(________641_4_2020609__665_[0].substring(0, _____74339_235491_6_9960[6]));
sb2 = new StringBuilder(________641_4_2020609__665_[0].substring(_____74339_235491_6_9960[7]+1, ________641_4_2020609__665_[0].length()));
________641_4_2020609__665_[0] = sb1.toString() + ________641_4_2020609__665_[2] + "[" + String.valueOf(_____74339_235491_6_9960[1]) + "]" + sb2.toString();
fnlChrRy = ________641_4_2020609__665_[0].toCharArray(); _____74339_235491_6_9960[11] = fnlChrRy.length; _____74339_235491_6_9960[8] = _____74339_235491_6_9960[11];}
_____74339_235491_6_9960[2]++;} _____74339_235491_6_9960[1]++;}} _____74339_235491_6_9960[0]++;}} catch(Exception e) {} return ________641_4_2020609__665_[0];}
//••••----------••••
private final String gVarNm(final int nmLen) {
StringBuilder sb = new StringBuilder(); final String strLttrs = "_91527_36458_46072_81903_";
int dx = 0, len = lRand.nextInt(12); if(len < 3) { len = lRand.nextInt(12);} if(len < 3) { len = 5;} while(dx < len) { sb.append("_"); dx++;} dx = 0;
while(dx < nmLen) { sb.append(String.valueOf(strLttrs.charAt(lRand.nextInt(strLttrs.length())))); dx++;} return sb.toString();}
//••••----------••••
private static final String removeSpc(final String txt) {
StringBuilder sb = new StringBuilder(); final char[] chrRy = txt.toCharArray();
int dx = 0, len = chrRy.length; while(dx < len) { if(chrRy[dx] != ' ' && chrRy[dx] != '\n') {
sb.append(String.valueOf(chrRy[dx]));} dx++;} return sb.toString();}
//••••----------••••


Other 20 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.