From 55fe6fe6c9fb7650f137d0f352732e0a65bc451c Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Fri, 19 Aug 2016 22:41:09 +0200 Subject: [PATCH] KeyCrypterScrypt: Bump up recommendation for number of iterations on mobile devices. --- core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java b/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java index 2b201f00..1443e3a5 100644 --- a/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java +++ b/core/src/main/java/org/bitcoinj/crypto/KeyCrypterScrypt.java @@ -103,8 +103,8 @@ public class KeyCrypterScrypt implements KeyCrypter { } /** - * Encryption/Decryption using custom number of iterations parameters and a random salt. A useful value for mobile - * devices is 512 (~500 ms). + * Encryption/Decryption using custom number of iterations parameters and a random salt. + * As of August 2016, a useful value for mobile devices is 4096 (derivation takes about 1 second). * * @param iterations * number of scrypt iterations