Skip to content

BenxiangGe/CryptoWithSageMath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

CryptoSage provides cryptography algorithms in SageMath (http://www.sagemath.org).

This project is for students and engineers interested in cryptography. You can try and test these cryptography algorithms with real parameters and full key lengths. We write cryptography algorithms in SageMath.

Install

At first you need to install SageMath. And then the sage command can load and run the CryptoSage scripts.

Features

We hope to implement all popular public key schemes:

  • Integer-Factoring-Based Cryptosystems including RSA/Rabin/Paillier, etc.
  • Descrete-Log-Based Cryptosystems including DH/ElGamal/DSA, etc.
  • ECC (Elliptic curve cryptography)
  • Pairing-Based Cryptography
  • Lattice-Based Cryptography
  • Coding-Based Cryptography

Elliptic Curve Cryptography

  • EC domain parameters: prime192v1.sage
  • EC key generation: eckeygen.sage
  • ECDSA signature generation and verification ecdsa.sage

You can view and try the ectest.sage

$ sage ectest.sage

Pairing

About

Cryptography in SageMath.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Makefile 0.1%