List of utility methods to do String Descrypt
String | decryptEmailId(String encryptedEmailId) Method to decrypt email id char[] letters = encryptedEmailId.toCharArray(); StringBuilder decriptedEmailId = new StringBuilder(); for (int index = 0; index < letters.length; index++) { int code = letters[index]; decriptedEmailId.append((char) ((code + S_FACTOR) / M_FACTOR)); return decriptedEmailId.toString(); |
void | decryptL(byte[] bytes, int length) decrypt L for (int i = 0; i < bytes.length; i++) { bytes[i] = (byte) (bytes[i] - 29); |
String | decryptMailAdress(String enc, int offset) decrypt Mail Adress String dec = ""; int len = enc.length(); for (int i = 0; i < len; i++) { char n = enc.charAt(i); if (n >= 0x2B && n <= 0x3A) { dec += decryptCharcode(n, 0x2B, 0x3A, offset); } else if (n >= 0x40 && n <= 0x5A) { dec += decryptCharcode(n, 0x40, 0x5A, offset); ... |
String | decryptPwd(String enc) decrypt Pwd String asarr[] = enc.split("@"); int inval = 0; String instr = "."; String instr1 = ""; String orval = ""; for (int lk = 0; lk < asarr.length; lk++) { if (asarr[lk].equalsIgnoreCase("")) instr = asarr[lk]; } else { instr1 = asarr[lk]; inval = Integer.parseInt(instr1); int divval = inval / 2; int minusval = divval - 2; orval = orval + (char) minusval; return orval; |