Skip to content

Commit

Permalink
Hopefully fixed issue #80, password issue
Browse files Browse the repository at this point in the history
  • Loading branch information
redfish64 committed Oct 27, 2018
1 parent 57a706a commit a5b0625
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.rareventure.gps2"
minSdkVersion 19
targetSdkVersion 26
versionCode 84
versionName "1.1.41"
versionCode 85
versionName "1.1.42"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/rareventure/android/Crypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class Crypt {
private static final int IV_LENGTH = 16;
public static final int SECRET_KEY_ROUNDS = 2048;
private static final String SECRET_KEY_FACTORY_IMPL = "PBKDF2WithHmacSHA1";

private SecretKeySpec skeySpec;

private SecureRandom sr = new SecureRandom();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private static PrivateKey decryptPrivateKey(String password)
System.arraycopy(output, 0, output2, 0, keyLength);

// Private keys are encoded with PKCS#8 (or so they say)
PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(output);
PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(output2);

KeyFactory keyFactory = KeyFactory.getInstance("RSA");
return keyFactory.generatePrivate(keySpec);
Expand Down

0 comments on commit a5b0625

Please sign in to comment.