Update cryptography dependency to 41.0.4 to fix vulnerability
This should fix 5 dependabot alerts.

Fix #1837.
Update cryptography dependency to 41.0.4 to fix vulnerability: This should fix 5 dependabot alerts.

Fix #1837.