Start hooking up the intro to the database code

Fingerprint stuff has been left out for now
This commit is contained in:
Alexander Bakker 2017-08-06 16:03:36 +02:00
parent f1b499f101
commit 53e86db187
11 changed files with 311 additions and 633 deletions

View file

@ -26,7 +26,7 @@ public class CryptoUtils {
public static final byte CRYPTO_NONCE_SIZE = 12;
public static final byte CRYPTO_SALT_SIZE = 32;
// TODO: decide on a 'secure-enough' iteration count
public static final short CRYPTO_ITERATION_COUNT = 10000;
public static final short CRYPTO_ITERATION_COUNT = 2000;
public static final String CRYPTO_CIPHER_RAW = "AES/ECB/NoPadding";
public static final String CRYPTO_CIPHER_AEAD = "AES/GCM/NoPadding";
// TODO: use a separate library for an HMAC-SHA256 implementation