Skip to content

Commit

Permalink
Fix bug related with hex key parsing while importing
Browse files Browse the repository at this point in the history
  • Loading branch information
zHd4 committed Jan 21, 2025
1 parent a81a31d commit 1fa6311
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/app/notesr/crypto/CryptoTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public static CryptoKey hexToCryptoKey(String hex, String password) throws Excep
}

public static CryptoKey hexToCryptoKey(String hex, String password, boolean newKey) throws Exception {
String[] hexArray = hex.toLowerCase()
.replace("\n", "")
.split(" ");
String[] hexArray = hex.toLowerCase().split("\\s+");

byte[] bytes = new byte[hexArray.length];

Expand Down

0 comments on commit 1fa6311

Please sign in to comment.