cryptography is a package which provides cryptographic recipes and primitives to
Python developers. Our goal is for it to be your "cryptographic standard
library". It supports Python 3.6+ and PyPy3 7.2+.
cryptography includes both high level recipes and low level interfaces to common
cryptographic algorithms such as symmetric ciphers, message digests, and key
derivation functions.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-cryptography listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-cryptography-50.0.1_1,1:
SSH=off: SSH protocol support
===> Use 'make config' to modify these settings
Reason:
Modern py-cryptography uses rust. In order to still support the Tier-2
architectures without rust support, a new default-version was added:
PYCRYPTOGRAPHY
it allows for the values 'rust' and 'legacy'.
The default is 'rust' on all platforms supporting this.
Note: users that are relying on the 'legacy' version will also take care
of using a non-base OpenSSL in the future.
Port Moves
port moved here from devel/py-types-cryptography on 2025-08-12 REASON: Remove obsoleted port. The cryptography package includes type annotations or type stubs since version 3.4.4. Use security/py-cryptography instead
Number of commits found: 121 (showing only 21 on this page) #
security/py-pycryptography: Fix build on FreeBSD 9.3
Modern py-cryptography requires a more modern OpenSSL. This switch to
requiring OpenSSL from ports is a disruptive change, but it will protect
these users from the recently patched vulnerabilites.
Support for OpenSSL 0.9.8 was removed in pycryptography as of version 1.4.
The last release to support OpenSSL 0.9.8 was 1.3.4 which is still
vulnerable to the HDKF key generation bug. It appears that version 1.4
did build successfully on FreeBSD 9.3, but upstream had abandoned
support for OpenSSL 0.9.8 at that point so it is unclear if it was fully
functional.
PR: 214915
MFH: 2016Q4
security/py-cryptography: Update to 1.3.1
- Update to latest version 1.3.1
- Remove patch now included upstream
- Add patch to allow build without openssl/e_os.h in base
Reviewed by: koobs (mentor, python), feld (mentor)
Approved by: feld (mentor)
Differential Revision: D5959
devel/py-asn1: move to devel/py-pyasn1 to match PyPI name
- move to devel/py-pyasn1 to match PyPI name
- update *_DEPENDS and bump PORTREVISION in dependent ports
- reset PORTEPOCH
PR: 204567
Submitted by: John W. O'Brien <john@saltant.com>
Approved by: mhjacks@swbell.net (maintainer of devel/py-asn1)
security/py-cryptography: Add missing run-time dependencies
Add py-idna and conditionally (For Python < 3.3) py-ipaddress to
RUN_DEPENDS
While I'm here:
- Update minimum versions requirement for py-cffi
- Update test target since the framework supports TEST_DEPENDS et al.
Noticed by: brnrd
security/py-cryptography: Add enum43 to RUN_DEPENDS
Refactor *_DEPENDS to match setup.py's less than obvious dependencies
cffi is both a build/run dependency, the rest are only run dependencies.
This was causing a build failure for net-im/papyon:
ImportError: No module named enum
Reported by: kwm, pkg-fallout
Assisted by: antoine
security/py-cryptography: Update to 1.0.2
- Update to 1.0.2
- Strip shared libraries
- Add patch to support building with LibreSSL
- Remove ALPN patch (upstreamed)
Changes:
https://github.com/pyca/cryptography/blob/1.0.2/CHANGELOG.rst
PR: 203819
Submitted by: Ralf van der Enden <tremere cainites net>
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10
Differential Revision: https://reviews.freebsd.org/D2639
Reviewed by: sunpoet, mva
security/py-cryptography: Update to 0.7.2, Fix LibreSSL
- Update to 0.7.2
- Update BUILD_DEPENDS and TEST_DEPENDS
- Patch upstream sources to fix LibreSSL:
* Remove EGD (Perl Entropy Gathering Daemon) support. This hasn't
been needed on FreeBSD since FreeBSD 4.2
* Disable compression conditionally using OPENSSL_NO_COMP
* Check features, not version for x509_vfy
[1] https://github.com/pyca/cryptography/issues/928
PR: 196827
Submitted by: Bernard Spil <spil.oss gmail com>
security/py-cryptography: BUILD_DEPENDS are also RUN_DEPENDS
Add BUILD_DEPENDS (cffi and six) to RUN_DEPENDS as they are needed at run time
Reported by: antoine
security/py-cryptography: Update to 0.2.2
- Update to 0.2.2
Changes:
* Removed a constant definition that was causing compilation problems
with specific versions of OpenSSL.
[NEW PORT] security/py-cryptography: Cryptographic recipes and primitives to
Python developers
cryptography is a package designed to expose cryptographic recipes and
primitives to Python developers. Our goal is for it to be your "cryptographic
standard library". It supports Python 2.6-2.7, Python 3.2+, and PyPy.
cryptography includes both high level recipes, and low level interfaces to
common cryptographic algorithms such as symmetric ciphers, message digests
and key derivation functions.
WWW: http://github.com/pyca/cryptography/
Number of commits found: 121 (showing only 21 on this page)