[- Disclaimer -]
아래 내용은 정보보안 공부 목적으로 작성된 것이나, 이를 토대로 허가되지 않은 대상에 실습을 진행할 경우 해킹 시도로 간주하여 법적 처벌을 받을 수 있음을 알려 드립니다.
Pycrypto
✦ AES, EDS, RSA 등의 암호 알고리즘 및 SHA-256 등의 Hash 함수 제공 Python Package
✦ Pyhton 공식 사이트에서 C++ Source Code 형태로 배포중
✦ Unicode 문자열 미지원으로 decode('utf-8') 자주 사용해줘야 함
Source 설치
✦ Windows의 경우 MSVS 설치 후 공식 홈페이지에서 Source 다운
C:\>python setup.py build
python: can't open file 'setup.py': [Errno 2] No such file or directory
C:\>python setup.py install
python: can't open file 'setup.py': [Errno 2] No such file or directory
C:\>
Plain Text
복사
PIP를 이용한 설치
✦ Windows의 경우 MSVS 설치 후 진행
C:\>pip install pycrypto
Plain Text
복사
✦ Windows의 경우 MSVS 설치 없이도 아래의 Github에서 진행 가능
[64비트]
C:\>pip install --use-wheel --no-index --find-links=https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl pycrypto
[32비트]
C:\>pip install --use-wheel --no-index --find-links=https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win32.whl pycrypto
Plain Text
복사
✦ 근데 pycrypto는 설치 안되고 뒤에 dome 붙여서 pycryptodome는 설치가 되네
C:\>pip install pycryptodome
Collecting pycryptodome
Downloading pycryptodome-3.9.8-cp38-cp38-win32.whl (14.1 MB)
|████████████████████████████████| 14.1 MB 233 kB/s
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.9.8
C:\>
Plain Text
복사



