Skip to content
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/sagemathCryptography and Web3

sagemath

⁨Auth/lab ref: Computer algebra and number-theory environment for cryptanalysis scripting.⁩

v2026.11.13-21cd5683 installs+3 in 7 days39 StarsGPL-3.0synced 10 hours ago

Install

No NotHoly CLI yet? Install it first.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/sagemath

Writes to ⁦~/.notholy/skills⁩ after checking the signature and the SHA-256.

SignatureSigned, ed25519
8Qy/xrQdjp…WUsmiqCA==The CLI checks the SHA-256 and the signature before it writes a file.
Package4cfb0bdd…8e4bfd8d
4cfb0bdde4c7…73868e4bfd8d3 files · ⁦4.3 KB⁩
ScanLowno findings
The scan found nothing to flag in this version.See the full scan
Sourcegithub.com/AeonDave/malskill/tree/main/offensive-tools/cryptography/sagemath@21cd568

Sage is the go-to environment for mathematical cryptanalysis and attack modeling. Use it when standard scripting is not enough for algebraic structures and lattice workflows.

Typical use cases

  • Finite field computations (GF, extension fields).
  • Polynomial rings and elimination/resultants.
  • Elliptic curve arithmetic and discrete-log style tasks.
  • Lattice modeling (matrix, LLL) for partial leakage recovery.
  • Fast prototyping of attack math before operationalizing in Python.

Invocation modes

bash
# REPL
sage

# Run .sage script
sage solver.sage

# Run Python file with Sage runtime
sage -python solver.py

# Jupyter with Sage kernel
sage -n jupyter

Practical workflow

  1. Parse input values (files, network output, pubkeys).
  2. Model algebra in Sage-native structures (GF, rings, curves, matrices).
  3. Validate with small synthetic tests.
  4. Execute full solve, export recovered secrets to plain Python bytes/ints.
  5. Integrate with pwntools or service scripts for secret recovery.

Common cryptanalysis patterns

From real-world cryptanalysis work, common patterns include:

  • from sage.all import * alongside pwntools remote interaction.
  • Factoring and formatting factorization answers for oracle protocols.
  • Elliptic curve order / point lifting / discrete-log solves.
  • Lattice assembly via identity/augment/stack + LLL().
  • Finite-field polynomial construction and resultant-based elimination.
  • .sage solvers combining bitwise transforms, polynomial operations over GF(2^N), and iterative remote interaction rounds.

Output hygiene

  • Convert Sage integers to Python ints before serialization.
  • Convert numeric secrets to bytes with explicit endianness/length handling.
  • Keep deterministic seeds/options when random components appear.

Resources

  • references/python-sage-scripts.md — authoritative patterns for .sage and sage -python workflows, imports, interoperability, and pitfalls.
  • references/cryptanalysis-patterns.md — practical cryptanalysis templates (GF, EC, lattice, polynomial elimination) grounded in real solver style.

Files in this version

Permissions

PermissionDeclaredFound by the scan
Reads filesNoNo
Writes filesNoNo
Runs shell commandsYesYes
Uses the networkNoNo
Uses connectorsNoNo
Drives a browserNoNo

Scan findings

Reviewed on Nov 13, 2026

The scan found nothing to flag in this version.

A clean scan lowers the risk but does not prove a package is safe. Read what you install.

VersionPublishedCommitSHA-256SignaturePermission change
v2026.11.13-21cd568Nov 13, 202621cd5684cfb0bddSigned–

Ask anything your scope allows.

Create an account, add credits and ask the first question in the chat or the terminal.

  1. 1/3

    Create the account

    Individual or company. You can switch to a company later without losing balance or keys.

    IndividualCompany
  2. 2/3

    Add credits

    By card. Pay per token, no subscription.

    $5.00minimum deposit
  3. 3/3

    Ask

    In the chat, or install the CLI and run notholy login in your terminal.

    $ notholy login