From 080e689c3fe46b0c51fa05a2378232ca8a57c26a Mon Sep 17 00:00:00 2001 From: asn Date: Tue, 25 Aug 2015 12:46:32 +0800 Subject: [PATCH] Update mkopkt.java --- .../src/com/example/drcom/mkopkt.java | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drcom-android/src/com/example/drcom/mkopkt.java b/drcom-android/src/com/example/drcom/mkopkt.java index e81dacb..9dd0ceb 100644 --- a/drcom-android/src/com/example/drcom/mkopkt.java +++ b/drcom-android/src/com/example/drcom/mkopkt.java @@ -1,7 +1,7 @@ package com.example.drcom; public class mkopkt { - public static byte[] dr_mkopkt(byte[] salt, String ipaddr, String usr, String pwd, String mac) throws Exception{ + public static byte[] dr_mkopkt(byte[] salt, String ipaddr, String usr, String pwd, String mac, byte[] authinfo) throws Exception{ String ip = ipaddr; //MainActivity.ipaddr; String[] ip_foo = ip.split("\\."); @@ -15,7 +15,12 @@ public static byte[] dr_mkopkt(byte[] salt, String ipaddr, String usr, String pw byte[] md5_foo_1 = ByteMerge.byteMerger(md5_foo_10, salt); byte[] md5_foo = ByteMerge.byteMerger(md5_foo_1, pwd.getBytes()); byte[] md5a = ByteMD5.MD5_lite(md5_foo); - username = usr.getBytes(); + byte[] account = usr.getBytes(); + for(int i=0;i