Python module for creating safe prime numbers using OpenSSL
Switch branches/tags
Nothing to show
Clone or download


This module generates safe prime numbers using the OpenSSL library. A number p
is a safe prime number, if p is a prime number, and p = 2*q+1, and q is a prime
number too. These numbers are sometimes used in cryptography.

Written by Erik Tews <>
Python 3 compatibility by Peter Wagenaar <>