{"library":"pycrypto","title":"PyCrypto","description":"PyCrypto is a collection of cryptographic modules for Python, providing algorithms like AES, RSA, and hashing functions. Its last release was 2.6.1 in 2013. The library is unmaintained and is considered insecure for modern applications due to known vulnerabilities and lack of updates. Its development has ceased, with `pycryptodome` serving as its actively maintained successor and drop-in replacement.","language":"python","status":"abandoned","last_verified":"Sat May 16","install":{"commands":["pip install pycrypto"],"cli":null},"imports":["from Crypto.Cipher import AES","from Crypto.PublicKey import RSA","from Crypto.Hash import MD5","from Cryptodome.Cipher import AES  # For pycryptodome"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from Crypto.Hash import MD5\nimport os\n\n# Note: PyCrypto is an abandoned library and not recommended for new projects\n# due to security concerns. This example is for illustrative purposes only.\n# For production, use pycryptodome or cryptography.\n\ntry:\n    message = b\"This is a test message to hash.\"\n    \n    # Create an MD5 hash object\n    hasher = MD5.new()\n    hasher.update(message)\n    \n    print(f\"Original message: {message}\")\n    print(f\"MD5 hash (hex): {hasher.hexdigest()}\")\n    \n    # Important security note: MD5 is cryptographically broken and should NOT\n    # be used for security-critical applications like password storage or digital signatures.\n    \nexcept ImportError:\n    print(\"PyCrypto is not installed or unable to import modules. Please ensure 'pip install pycrypto' was successful and check Python version compatibility.\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")\n","lang":"python","description":"This quickstart demonstrates how to compute an MD5 hash using PyCrypto. Please be aware that PyCrypto is an unmaintained library with known security vulnerabilities. MD5 itself is cryptographically broken and should not be used for security-critical purposes. For new projects, `pycryptodome` or `cryptography` are recommended secure alternatives.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":null,"pypi_latest":"2.6.1","is_stale":null,"summary":{"python_range":"3.10–3.9","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.4,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.1,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3.1,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.8,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pycrypto","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.8,"import_time_s":null,"mem_mb":null,"disk_size":null}]}}