aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ethy.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ethy.py b/ethy.py
index 2fab805..04fa512 100644
--- a/ethy.py
+++ b/ethy.py
@@ -148,9 +148,13 @@ if __name__ == '__main__':
iv = os.urandom(16)
salt = os.urandom(16)
- n = 1 << (12 if args.light else 18)
+ if args.light:
+ n = 1 << 12
+ p = 6
+ else:
+ n = 1 << 18
+ p = 1
r = 8
- p = 1
passwd = getpass2()
pwd_len = len(passwd)
pwd_ent = entropy(passwd)