We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d64757 commit d0f869bCopy full SHA for d0f869b
Dockerfile
@@ -413,6 +413,8 @@ RUN pip install flashtext && \
413
pip install pytorch-lightning && \
414
pip install datatable && \
415
pip install sympy && \
416
+ # pycrypto is used by competitions team.
417
+ pip install pycrypto && \
418
/tmp/clean-layer.sh
419
420
# Tesseract and some associated utility packages
tests/test_pycrypto.py
@@ -0,0 +1,10 @@
1
+import unittest
2
+
3
+from Crypto.Hash import SHA256
4
5
+class TestPycrypto(unittest.TestCase):
6
+ def test_digest(self):
7
+ hash = SHA256.new()
8
+ hash.update('message'.encode('utf-8'))
9
+ h = hash.digest()
10
+ self.assertEqual(h, b'\xabS\n\x13\xe4Y\x14\x98+y\xf9\xb7\xe3\xfb\xa9\x94\xcf\xd1\xf3\xfb"\xf7\x1c\xea\x1a\xfb\xf0+F\x0cm\x1d')
0 commit comments