preyearegmi
6 years ago
11 changed files with 161 additions and 51 deletions
-
4app/src/main/AndroidManifest.xml
-
19app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/presenter/LoginV2Presenter.java
-
2app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/presenter/LoginV2PresenterInterface.java
-
103app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/view/LoginV2Activity.java
-
40app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/EncryptionManager.java
-
3app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeyboardManager.java
-
2app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeyboardView.java
-
2app/src/main/java/com/gmeremit/online/gmeremittance_native/utils/security/securitykeypad/SecurityKeypadRequestParamBuilder.java
-
29app/src/main/res/layout/activity_login_v2.xml
-
2app/src/main/res/layout/security_keyboard_view.xml
-
6app/src/main/res/xml/network_security_config.xml
@ -0,0 +1,40 @@ |
|||
package com.gmeremit.online.gmeremittance_native.utils.security.securitykeypad; |
|||
|
|||
import android.util.Log; |
|||
|
|||
import com.softsecurity.transkey.Global; |
|||
import com.softsecurity.transkey.TransKeyCipher; |
|||
|
|||
public class EncryptionManager { |
|||
|
|||
public static String decryptCipherText(String cipherData,byte[] secureKey, int dataLength) |
|||
{ |
|||
|
|||
if (dataLength == 0) |
|||
return ""; |
|||
|
|||
StringBuffer plainData = null; |
|||
|
|||
try { |
|||
TransKeyCipher tkc = new TransKeyCipher("SEED"); |
|||
tkc.setSecureKey(secureKey); |
|||
|
|||
|
|||
|
|||
byte pbPlainData[] = new byte[dataLength]; |
|||
if (tkc.getDecryptCipherData(cipherData, pbPlainData)) { |
|||
plainData = new StringBuffer(new String(pbPlainData)); |
|||
|
|||
for(int i=0;i<pbPlainData.length;i++) |
|||
pbPlainData[i]=0x01; |
|||
} else { |
|||
return ""; |
|||
} |
|||
|
|||
} catch (Exception e) { |
|||
return ""; |
|||
} |
|||
|
|||
return plainData.toString(); |
|||
} |
|||
} |
@ -1,8 +1,7 @@ |
|||
package com.gmeremit.online.gmeremittance_native.customwidgets.securitykeypad; |
|||
package com.gmeremit.online.gmeremittance_native.utils.security.securitykeypad; |
|||
|
|||
import android.content.Context; |
|||
import android.content.Intent; |
|||
import android.view.MotionEvent; |
|||
import android.widget.EditText; |
|||
import android.widget.FrameLayout; |
|||
import android.widget.HorizontalScrollView; |
@ -1,4 +1,4 @@ |
|||
package com.gmeremit.online.gmeremittance_native.customwidgets.securitykeypad; |
|||
package com.gmeremit.online.gmeremittance_native.utils.security.securitykeypad; |
|||
|
|||
import android.content.Context; |
|||
import android.graphics.Rect; |
@ -1,4 +1,4 @@ |
|||
package com.gmeremit.online.gmeremittance_native.customwidgets.securitykeypad; |
|||
package com.gmeremit.online.gmeremittance_native.utils.security.securitykeypad; |
|||
|
|||
import android.content.Context; |
|||
import android.content.Intent; |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<network-security-config> |
|||
<domain-config cleartextTrafficPermitted="true"> |
|||
<domain includeSubdomains="true">gmeuat.gmeremit.com</domain> |
|||
</domain-config> |
|||
</network-security-config> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue