Check if the cryptography module >= 2.0.0 is present. This is the minimum version for most usages in Scapy.
()
| 740 | |
| 741 | |
| 742 | def isCryptographyValid(): |
| 743 | # type: () -> bool |
| 744 | """ |
| 745 | Check if the cryptography module >= 2.0.0 is present. This is the minimum |
| 746 | version for most usages in Scapy. |
| 747 | """ |
| 748 | # Check import |
| 749 | try: |
| 750 | import cryptography |
| 751 | except ImportError: |
| 752 | return False |
| 753 | |
| 754 | # Check minimum version |
| 755 | return _version_checker(cryptography, (2, 0, 0)) |
| 756 | |
| 757 | |
| 758 | def isCryptographyAdvanced(): |