Understand the cryptography API stability policy
mainThe cryptography library maintains a strong API stability policy for all documented APIs and behaviors.
What is guaranteed:
- Public APIs will not be removed or renamed without providing a compatibility alias.
- The behavior of existing APIs will not change.
What is NOT guaranteed:
- Internal object details like
dir(obj)orobj.__dict__may change when new features are added. - Objects are not guaranteed to be pickleable; pickled objects from one version may not be loadable in future versions.
- Sub-classing is not supported unless explicitly documented; behavior regarding sub-classes is not guaranteed to be stable.
- Development versions are not covered by this policy.
Security Exception: To resolve security issues or harden the library against attacks, the stability policy may be violated.