Skip to main content
Ctrl+K

ToyCrypto (0.4.3)

  • Get Started
  • Motiviation
  • The modules
  • Bibliography
  • PyPI
  • GitHub
  • Get Started
  • Motiviation
  • The modules
  • Bibliography
  • PyPI
  • GitHub

Section Navigation

Main modules

  • Number Theory
  • Sieve of Eratosthenes
  • Birthday Paradox Computations
  • RSA
  • Elliptic curves
  • Security games
  • Vigenère cipher

Utility modules

  • Random Numbers
  • Utility functions
  • Bit manipulation utiltieis
  • Types

Indices

  • General Index
  • Python Module Index
  • The modules

The modules#

There are a number distinct modules for playing with different Cryptographic concepts.

Main modules

  • Number Theory
    • The FactorList class
    • Functions
  • Sieve of Eratosthenes
    • Why three separate implementations?
    • The algorithm
    • The Sievish Protocol
    • The Sieve alias
  • The concrete classes
    • The BaSieve class
    • The SetSieve class
    • The IntSieve class
  • Birthday Paradox Computations
    • The birthday functions
    • Implementation ported from R
  • RSA
    • PublicKey
    • PrivateKey
    • default_e()
    • OAEP utilities
    • Key Generation
  • Elliptic curves
    • The ec classes
  • Security games
    • General Structure
    • Examples
    • Exceptions
    • Types for encryption scheme
    • The class and method organization
    • State management tools
  • Vigenère cipher
    • The Cipher class
    • The Alphebet class
    • Cryptanalysis tools

Some modules contain utilities which are imported by other modules.

Utility modules

  • Random Numbers
    • The rand functions
  • Utility functions
    • digit_count()
    • xor
    • Encodings for the RSA 129 challenge
  • Bit manipulation utiltieis
    • Examples
    • The publically available parts
  • Types
    • Byte
    • PositiveInt
    • Prob
    • SupportsBool
    • is_byte()
    • is_positive_int()
    • is_prob()

previous

Motiviation

next

Number Theory

This Page

  • Show Source

© Copyright 2024–2025 Jeffrey Goldberg.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.