Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Nov 17, 2023
1 parent 5cd7ed2 commit f5d3663
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 33
versionCode 30
versionName "4.99.6"
versionName "4.99.7"
buildConfigField "String", "APP_PRODUCT_NAME", "\"FingerprintPay\""
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
import com.wei.android.lib.fingerprintidentify.bean.FingerprintIdentifyFailInfo;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import javax.crypto.Cipher;

Expand Down Expand Up @@ -234,7 +236,8 @@ public void onSucceed(XFingerprintIdentify target, Cipher cipher) {
super.onSucceed(target, cipher);
NotifyUtils.notifyFingerprint(context, Lang.getString(R.id.toast_fingerprint_password_enc_success));
config.setPasswordEncrypted(AESUtils.encrypt(cipher, password));
config.setPasswordIV(AESUtils.byte2hex(cipher.getIV()));
byte[] iv = cipher.getIV();
config.setPasswordIV(AESUtils.byte2hex(iv != null ? iv : ("-fallback-place-holder-" + UUID.randomUUID()).getBytes(StandardCharsets.UTF_8)));
config.commit();

passwordInputDialog.dismiss();
Expand Down

0 comments on commit f5d3663

Please sign in to comment.