From 5fe296eb9f9b216e05921ac0c41f5defc1cc2054 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 2 Oct 2012 16:12:50 +0200 Subject: trying to use the same Hash Alg and Prime as webapp - still failing --- users/test/integration/api/python/flow_with_srp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'users/test/integration/api') 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() -- cgit v1.2.3