Subversion Repositories SmartDukaan

Rev

Rev 6233 | Rev 10118 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6233 Rev 6903
Line 324... Line 324...
324
 
324
 
325
		public String getPhone() {
325
		public String getPhone() {
326
			return phone;
326
			return phone;
327
		}
327
		}
328
	}
328
	}
-
 
329
    
-
 
330
    public static void main(String[] args) {
-
 
331
        {
-
 
332
            String encrypted = "2be98afc86aa7f2e4cb79ac798cc2fd8a"; 
-
 
333
            BigInteger bi_r0 = new BigInteger("0933910847463829827159347601486730416058");
-
 
334
            /*String password = "shop2020";
-
 
335
            
-
 
336
            BigInteger bi_passwd = new BigInteger(password.getBytes());
-
 
337
            System.out.println(bi_passwd);
-
 
338
 
-
 
339
            
-
 
340
            BigInteger bi_r1 = bi_r0.xor(bi_passwd);
-
 
341
            System.out.println(bi_r1);
-
 
342
            System.out.println((bi_r1.toString(16)));
-
 
343
            */
-
 
344
            try
-
 
345
            {
-
 
346
              BigInteger bi_enc = new BigInteger(encrypted, 16);
-
 
347
              System.out.println(bi_enc);
-
 
348
              BigInteger bi_result = bi_enc.xor(bi_r0);
-
 
349
              System.out.println(bi_result);
-
 
350
              String str = new String(bi_result.toByteArray());
-
 
351
              System.out.println(str);
-
 
352
            } catch (Exception e) {
-
 
353
                System.out.println("oops");
-
 
354
            }
-
 
355
        }
-
 
356
    }
329
}
357
}