diff options
author | Zhao Chao <zhaochao1984@gmail.com> | 2018-04-11 12:39:05 +0800 |
---|---|---|
committer | Fan Zhang <zh.f@outlook.com> | 2018-06-08 10:55:44 +0800 |
commit | 46a031e76544572562eaf3e757a0ff488c3389f2 (patch) | |
tree | 3267243dbc687e9c99fe274f59d030121090a5c5 /requirements.txt | |
parent | e96c0093cd7419252242a4f2b1435436f65697f7 (diff) | |
download | trove-46a031e76544572562eaf3e757a0ff488c3389f2.tar.gz |
Switch to cryptography from pycrypto
PyCrypto isn't active developed for quite a while, cryptography is
recommended instead. This patch does this migration, but still keeps
pycrytpo as a fallback solution.
Random generation is also migrated to os.urandom as the cryptography
document suggests:
https://cryptography.io/en/latest/random-numbers/
Closes-Bug: #1749574
Change-Id: I5c0c1a238023c116af5a84d899e629f1c7c3513f
Co-Authored-By: Fan Zhang <zh.f@outlook.com>
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
Diffstat (limited to 'requirements.txt')
-rw-r--r-- | requirements.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt index ed5dae2f..be301f1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -44,6 +44,7 @@ oslo.log>=3.36.0 # Apache-2.0 oslo.db>=4.27.0 # Apache-2.0 enum34>=1.0.4;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD xmltodict>=0.10.1 # MIT +cryptography>=2.1.4 # BSD/Apache-2.0 pycrypto>=2.6 # Public Domain oslo.policy>=1.30.0 # Apache-2.0 diskimage-builder!=1.6.0,!=1.7.0,!=1.7.1,>=1.1.2 # Apache-2.0 |