cocagne / pysrp

Python implementation of the Secure Remote Password protocol (SRP)
MIT License
116 stars 45 forks source link

finish six removal #58

Closed a-detiste closed 3 months ago

a-detiste commented 3 months ago
tchet@quieter:~/git/pysrp$ python setup.py build
tchet@quieter:~/git/pysrp$ python3 -m unittest
************************************************************
*
* Testing Implementation
*
................
----------------------------------------------------------------------
Ran 16 tests in 0.573s

OK
************************************************************
*
* Performance Testing
*
************************************************************
Thread Performance Test:
   Thread Count  1: 0.004542
   Thread Count  2: 0.002393
   Thread Count  3: 0.001502
   Thread Count  4: 0.001708
   Thread Count  5: 0.001691
   Thread Count  6: 0.002177
   Thread Count  7: 0.002000
   Thread Count  8: 0.002542
   Thread Count  9: 0.004144
   Thread Count 10: 0.003568
************************************************************
Hash Algorithm vs Prime Number performance table

       |      NG_1024      NG_2048      NG_4096      NG_8192 
------------------------------------------------------------
SHA1   |     0.001811     0.001585     0.017093     0.066700 
SHA224 |     0.001576     0.005309     0.019936     0.078269 
SHA256 |     0.001653     0.005535     0.020791     0.081630 
SHA384 |     0.002048     0.006928     0.026457     0.104021 
SHA512 |     0.002421     0.008390     0.032445     0.126872 
************************************************************
Default Parameter Timings:
    Python, SHA1  , 2048: 0.017112
    ctypes, SHA1  , 2048: 0.004616

Performance increases: 
   ctypes-module :  3.7069575502151153
................
----------------------------------------------------------------------
Ran 16 tests in 0.577s

OK
tchet@quieter:~/git/pysrp$ 
cocagne commented 3 months ago

Looks good. Thanks for the PR