Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-proctoring
Commits
b451cca0
Unverified
Commit
b451cca0
authored
Dec 21, 2017
by
Tyler Hallada
Committed by
GitHub
Dec 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #397 from edx/thallada/switch-to-pycryptodomex
Switch from PyCrypto to PyCryptodomex
parents
a639810d
1894ddef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
edx_proctoring/__init__.py
+1
-1
edx_proctoring/backends/software_secure.py
+3
-2
requirements/base.in
+1
-1
No files found.
edx_proctoring/__init__.py
View file @
b451cca0
...
@@ -4,6 +4,6 @@ The exam proctoring subsystem for the Open edX platform.
...
@@ -4,6 +4,6 @@ The exam proctoring subsystem for the Open edX platform.
from
__future__
import
absolute_import
from
__future__
import
absolute_import
__version__
=
'1.3.
2
'
__version__
=
'1.3.
3
'
default_app_config
=
'edx_proctoring.apps.EdxProctoringConfig'
# pylint: disable=invalid-name
default_app_config
=
'edx_proctoring.apps.EdxProctoringConfig'
# pylint: disable=invalid-name
edx_proctoring/backends/software_secure.py
View file @
b451cca0
...
@@ -17,7 +17,7 @@ import requests
...
@@ -17,7 +17,7 @@ import requests
from
django.conf
import
settings
from
django.conf
import
settings
from
Crypto.Cipher
import
DES3
from
Crypto
dome
.Cipher
import
DES3
from
edx_proctoring.backends.backend
import
ProctoringBackendProvider
from
edx_proctoring.backends.backend
import
ProctoringBackendProvider
from
edx_proctoring
import
constants
from
edx_proctoring
import
constants
...
@@ -337,7 +337,8 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
...
@@ -337,7 +337,8 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
"""
"""
Apply padding
Apply padding
"""
"""
return
text
+
(
block_size
-
len
(
text
)
%
block_size
)
*
chr
(
block_size
-
len
(
text
)
%
block_size
)
return
(
text
+
(
block_size
-
len
(
text
)
%
block_size
)
*
chr
(
block_size
-
len
(
text
)
%
block_size
))
.
encode
(
'utf-8'
)
cipher
=
DES3
.
new
(
key
,
DES3
.
MODE_ECB
)
cipher
=
DES3
.
new
(
key
,
DES3
.
MODE_ECB
)
encrypted_text
=
cipher
.
encrypt
(
pad
(
pwd
))
encrypted_text
=
cipher
.
encrypt
(
pad
(
pwd
))
return
base64
.
b64encode
(
encrypted_text
)
return
base64
.
b64encode
(
encrypted_text
)
...
...
requirements/base.in
View file @
b451cca0
...
@@ -6,7 +6,7 @@ django-model-utils>=2.3.1
...
@@ -6,7 +6,7 @@ django-model-utils>=2.3.1
djangorestframework>=3.1,<3.7
djangorestframework>=3.1,<3.7
django-ipware>=1.1.0
django-ipware>=1.1.0
pytz>=2012h
pytz>=2012h
pycrypto
>=2.6
pycrypto
domex>=3.4.7
python-dateutil>=2.1
python-dateutil>=2.1
# edX packages
# edX packages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment