File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 13
13
'paste' ,
14
14
'zope.interface' ,
15
15
'repoze.who' ,
16
- 'pycryptodome' , # 'Crypto'
16
+ 'pycryptodomex' ,
17
17
'pytz' ,
18
18
'pyOpenSSL' ,
19
19
'python-dateutil' ,
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
import os
3
- from Crypto import Random
4
- from Crypto .Cipher import AES
3
+ from Cryptodome import Random
4
+ from Cryptodome .Cipher import AES
5
5
from base64 import b64encode , b64decode
6
6
7
7
__author__ = 'rolandh'
Original file line number Diff line number Diff line change 8
8
from OpenSSL import crypto
9
9
from os .path import join
10
10
from os import remove
11
- from Crypto .Util import asn1
11
+ from Cryptodome .Util import asn1
12
12
13
13
class WrongInput (Exception ):
14
14
pass
Original file line number Diff line number Diff line change 4
4
import copy
5
5
import logging
6
6
from hashlib import sha1
7
- from Crypto .PublicKey import RSA
7
+ from Cryptodome .PublicKey import RSA
8
8
import requests
9
9
import six
10
10
from saml2 .metadata import ENDPOINTS
Original file line number Diff line number Diff line change 18
18
from binascii import hexlify
19
19
import six
20
20
21
- from Crypto .PublicKey .RSA import importKey
22
- from Crypto .Signature import PKCS1_v1_5
23
- from Crypto .Util .asn1 import DerSequence
24
- from Crypto .PublicKey import RSA
25
- from Crypto .Hash import SHA
26
- from Crypto .Hash import SHA224
27
- from Crypto .Hash import SHA256
28
- from Crypto .Hash import SHA384
29
- from Crypto .Hash import SHA512
21
+ from Cryptodome .PublicKey .RSA import importKey
22
+ from Cryptodome .Signature import PKCS1_v1_5
23
+ from Cryptodome .Util .asn1 import DerSequence
24
+ from Cryptodome .PublicKey import RSA
25
+ from Cryptodome .Hash import SHA
26
+ from Cryptodome .Hash import SHA224
27
+ from Cryptodome .Hash import SHA256
28
+ from Cryptodome .Hash import SHA384
29
+ from Cryptodome .Hash import SHA512
30
30
31
31
from tempfile import NamedTemporaryFile
32
32
from subprocess import Popen
You can’t perform that action at this time.
0 commit comments