Skip to main content
Ctrl+K

ToyCrypto (0.5.1)

  • Installing & Importing
  • Motiviation
  • The modules
  • Bibliography
  • PyPI
  • GitHub
  • Installing & Importing
  • Motiviation
  • The modules
  • Bibliography
  • PyPI
  • GitHub

Section Navigation

Main modules

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

Utility modules

  • Wycheproof
    • Overview
    • Usage
    • API
  • Random Numbers
  • Utility functions
  • Bit manipulation utilities
  • 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?
    • Abstract bases and overview
    • The concrete classes
  • Birthday Paradox Computations
    • The birthday functions
    • Implementation ported from R
  • RSA
    • Primitive RSA
    • RSA Key Generation
    • OAEP
  • 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

  • Wycheproof
    • What is the Wycheproof Project?
    • Why does my module exist?
    • Obtaining the Wycheproof data
    • Data overview
    • Table of contents
  • Random Numbers
    • The rand functions
  • Utility functions
    • digit_count()
    • next_power2()
    • nearest_multiple()
    • xor
    • Encodings for the RSA 129 challenge
  • Bit manipulation utilities
    • Examples
    • The publicly 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.