Skip to content

Commit 48782dd

Browse files
committed
QuickPass 2.0 beta 11
- New icon - Password encrypting! -- You can now encrypt your password to know that nobody will see it even if hack your root storage data - Password View and Adding design improved - All new main screen -- Smooth panel for all passwords -- Statistic copied to main screen - Backup restoring fixed (For cyphered passwords) - Home UI updated - Added bank card icons near bank pins - Optimization for some constructions - Fixes - Translation updated - Duration of animation adjusted - Added back buttons - Smooth transitions through screens - UX update -- You can now restore your pass (Check Setting =)) -- Alert screen for log out in Account page - Settings update -- Auto asking permission for writing to storage -- New icons for export/import -- Tips for export/import now always available - Libraries updated (16/10/20)
1 parent eb416a5 commit 48782dd

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

app/src/main/java/com/mikhailgrigorev/quickpass/PasswordManager.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,6 @@ class PasswordManager {
133133

134134
private val RANDOM: Random = SecureRandom()
135135

136-
private fun getNextSalt(): ByteArray? {
137-
val salt = ByteArray(16)
138-
RANDOM.nextBytes(salt)
139-
return salt
140-
}
141-
142136
fun encrypt(strToEncrypt: String) : String?
143137
{
144138
try
@@ -169,15 +163,15 @@ class PasswordManager {
169163

170164
val factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1")
171165
val spec = PBEKeySpec(secretKey.toCharArray(), Base64.decode(salt, Base64.DEFAULT), 10000, 256)
172-
val tmp = factory.generateSecret(spec);
166+
val tmp = factory.generateSecret(spec)
173167
val secretKey = SecretKeySpec(tmp.encoded, "AES")
174168

175-
val cipher = Cipher.getInstance("AES/CBC/PKCS7Padding");
176-
cipher.init(Cipher.DECRYPT_MODE, secretKey, ivParameterSpec);
169+
val cipher = Cipher.getInstance("AES/CBC/PKCS7Padding")
170+
cipher.init(Cipher.DECRYPT_MODE, secretKey, ivParameterSpec)
177171
return String(cipher.doFinal(Base64.decode(strToDecrypt, Base64.DEFAULT)))
178172
}
179173
catch (e : Exception) {
180-
println("Error while decrypting: $e");
174+
println("Error while decrypting: $e")
181175
}
182176
return null
183177
}

app/src/main/res/layout/activity_about.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
android:layout_marginStart="20dp"
1515
android:layout_marginTop="20dp"
1616
android:contentDescription="@string/back"
17-
app:layout_constraintBottom_toBottomOf="@+id/helloTextId"
1817
app:layout_constraintStart_toStartOf="parent"
1918
app:layout_constraintTop_toTopOf="parent"
2019
app:srcCompat="@drawable/arrow_left"

0 commit comments

Comments
 (0)