https://github.com/p0dalirius/factorizator
A script to factorize integers with sagemath and factordb.
https://github.com/p0dalirius/factorizator
ctf factordb factorization integer rsa sagemath
Last synced: 6 months ago
JSON representation
A script to factorize integers with sagemath and factordb.
- Host: GitHub
- URL: https://github.com/p0dalirius/factorizator
- Owner: p0dalirius
- Created: 2022-05-14T13:05:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-23T12:38:36.000Z (over 2 years ago)
- Last Synced: 2024-12-18T18:50:10.581Z (about 1 year ago)
- Topics: ctf, factordb, factorization, integer, rsa, sagemath
- Language: Python
- Homepage: https://podalirius.net/
- Size: 10.7 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README

A script to factorize integers with sagemath and factordb.
## Features
- [x] Automatically checks if the number is already factored in [factordb.com](https://factordb.com).
- [x] Local factorization with sagemath.
- [x] Export the found factors to `factors.json`.
## Requirements
Install the following requirements for the script to work properly:
```
sudo apt install sagemath
python3 -m pip install requirements.txt
```
## Usage
```
$ ./facto.sage.py -h
_____ _ _ _
| ___|_ _ ___| |_ ___ _ __(_)______ _| |_ ___ _ __
| |_ / _` |/ __| __/ _ \| '__| |_ / _` | __/ _ \| '__| v1.3
| _| (_| | (__| || (_) | | | |/ / (_| | || (_) | |
|_| \__,_|\___|\__\___/|_| |_/___\__,_|\__\___/|_| by Remi GASCOU (Podalirius)
usage: facto.sage.py [-h] -n NUMBER
Factorize an integer.
optional arguments:
-h, --help show this help message and exit
-n NUMBER, --number NUMBER
Integer to factorize.
```
## Contributing
Pull requests are welcome. Feel free to open an issue if you want to add other features.