An open API service indexing awesome lists of open source software.

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: about 1 month ago
JSON representation

A script to factorize integers with sagemath and factordb.

Awesome Lists containing this project

README

          

![](./.github/banner.png)


A script to factorize integers with sagemath and factordb.


GitHub release (latest by date)

YouTube Channel Subscribers


## 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.