Repository: RNCryptor/RNCryptor-python (language: python)

Issue:
Upgrade to PyCryptodome?
I recently started using the RNCryptor libraries in a few different languages. Thanks for all the great work and documentation.

I was wondering if there was any plans to upgrade the python library to use [PyCryptodome](https://github.com/Legrandin/pycryptodome) and replace PyCrypto? It seems that PyCrypto is unmaintained ([issue](https://github.com/dlitz/pycrypto/issues/285) & [blog](https://theartofmachinery.com/2017/02/02/dont_use_pycrypto.html) discussing) and PyCryptodome is a (mostly) drop-in replacement for of the project. 

If not, would the project be open to a PR from me to upgrade the library? 

Thanks again. 


Discussion / hints:
Hi Robert,

I have no such plans, but I will be glad to review and merge your PR.
**bump**
Hi @rfadams, are you going to do the upgrade?
Got a deprecation warning:
venv/lib/python3.7/site-packages/Crypto/Random/_UserFriendlyRNG.py:77: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead
    t = time.clock()

Whether by switching to PyCryptodome or even to cryptography, please, remove pycrypto dependency before Python 3.8 release.

PyCryptodome is a maintained fork of pycrypto and exposes almost the same API as the old PyCrypto so that most applications could run unmodified. Compatibility with pycrypto is described here:
https://pycryptodome.readthedocs.io/en/latest/src/vs_pycrypto.html

Fix patch:
diff --git a/.travis.yml b/.travis.yml
index f416e3c..e25bb1d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,12 +11,8 @@ language: python
 
 matrix:
   include:
-    - python: "2.6"
-      env: TOXENV=py26
     - python: "2.7"
       env: TOXENV=py27
-    - python: "3.3"
-      env: TOXENV=py33
     - python: "3.4"
       env: TOXENV=py34
     - python: "3.5"
diff --git a/rncryptor.py b/rncryptor.py
index 456d344..7c139df 100644
--- a/rncryptor.py
+++ b/rncryptor.py
@@ -9,9 +9,8 @@
 from Crypto.Cipher import AES
 from Crypto.Protocol import KDF
 
-
 __all__ = ('RNCryptor', 'decrypt', 'encrypt')
-__version__ = '3.2.0'
+__version__ = '3.3.0'
 
 PY2 = sys.version_info[0] == 2
 PY3 = sys.version_info[0] == 3
diff --git a/setup.cfg b/setup.cfg
index f8d4182..f683bf4 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,5 +7,5 @@ max-line-length=100
 [pep257]
 ignore=D1
 
-[pytest]
+[tool:pytest]
 pep8maxlinelength=100
diff --git a/setup.py b/setup.py
index 8076844..31e0f54 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 from codecs import open
 from os import path
-from setuptools import setup
 
+from setuptools import setup
 
 here = path.abspath(path.dirname(__file__))
 
@@ -13,7 +13,7 @@ def get_long_description():
 
 setup(
     name='rncryptor',
-    version='3.2.0',
+    version='3.3.0',
     description='Python implementation of RNCryptor',
     long_description=get_long_description(),
     url='https://github.com/RNCryptor/RNCryptor-python',
@@ -26,10 +26,8 @@ def get_long_description():
         'Intended Audience :: Developers',
         'License :: OSI Approved :: MIT License',
         'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.6',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
@@ -38,5 +36,5 @@ def get_long_description():
     ],
     keywords='RNCryptor cryptography',
     py_modules=['rncryptor'],
-    install_requires=['pycrypto>=2.5']
+    install_requires=['pycryptodome>=3.8']
 )
diff --git a/tox.ini b/tox.ini
index 5a17028..4b9b5a7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,9 @@
 [tox]
-envlist = py26, py27, py33, py34, py35, py36
-
+envlist = py27, py34, py35, py36
 
 [testenv]
 commands = py.test -v -n {posargs:2} --flakes --isort --pep257 --pep8
-deps = pytest<3
+deps = pytest
     pytest-flakes
     pytest-isort
     pytest-pep257


Test patch:
diff --git a/test_rncryptor.py b/test_rncryptor.py
index 4350f8e..1a8f4d3 100644
--- a/test_rncryptor.py
+++ b/test_rncryptor.py
@@ -3,7 +3,6 @@
 
 import rncryptor
 
-
 DATA = (
     'test',
     'текст',