aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2018-03-24 23:56:52 -0400
committerDeterminant <ted.sybil@gmail.com>2018-03-24 23:56:52 -0400
commit027e9c7815ca0512884df3467b83ae7a827d520f (patch)
treeb3b86cdc3b149fe06e77a34c9d1846440fca349a
parentebb54d8cf1954281e33e486b9f7fc3ea33e7c4eb (diff)
...
-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)