From 7d9a44f8acf0db14ce68ae7ca3d403b0d52e0263 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 29 Oct 2022 12:22:38 +0200 Subject: [PATCH] Added comments --- app/src/main/java/eu/faircode/email/ActivitySetup.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index 5627d426ad..b1a87ea37e 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -841,6 +841,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac if (TextUtils.isEmpty(password)) raw.write(jexport.toString(2).getBytes()); else { + // https://developer.android.com/reference/javax/crypto/Cipher + // https://developer.android.com/reference/kotlin/javax/crypto/SecretKeyFactory int version = 0; int ivLen = (version == 0 ? 16 : 12); String derivation = (version == 0 ? "PBKDF2WithHmacSHA1" : "PBKDF2WithHmacSHA512");