diff options
author | Azul <azul@leap.se> | 2012-10-02 16:12:50 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-10-02 16:12:50 +0200 |
commit | 5fe296eb9f9b216e05921ac0c41f5defc1cc2054 (patch) | |
tree | 36e15dada740cd2fe51469058f1107b3193b1454 /users/test/integration/api/python | |
parent | 793f36bb8063017cd8b48f084597f4e64b72d0f4 (diff) |
trying to use the same Hash Alg and Prime as webapp - still failing
Diffstat (limited to 'users/test/integration/api/python')
-rwxr-xr-x | users/test/integration/api/python/flow_with_srp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/test/integration/api/python/flow_with_srp.py b/users/test/integration/api/python/flow_with_srp.py index 1aad555..08ac94a 100755 --- a/users/test/integration/api/python/flow_with_srp.py +++ b/users/test/integration/api/python/flow_with_srp.py @@ -26,7 +26,7 @@ def print_and_parse(response): return json.loads(response.text) def signup(session): - salt, vkey = srp.create_salted_verification_key( login, password ) + salt, vkey = srp.create_salted_verification_key( login, password, srp.SHA256, srp.NG_1024 ) user_params = { 'user[login]': login, 'user[password_verifier]': binascii.hexlify(vkey), @@ -34,7 +34,7 @@ def signup(session): } return session.post(server + '/users.json', data = user_params) -usr = srp.User( login, password ) +usr = srp.User( login, password, srp.SHA256, srp.NG_1024 ) def authenticate(session, login): uname, A = usr.start_authentication() |