See sagemath.org. The recommended way to go these days is to use a Jupyter notebook.
Certainly Sage includes the functionality to do public key crypto, etc.