Update cryptography dependency to fix vulnerability
This should fix 8 dependabot alerts.

Fix #2169.
Update cryptography dependency to fix vulnerability: This should fix 8 dependabot alerts.

Fix #2169.