Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starlingvibes/rsa-factoring-challenge
We have sniffed an unsecured network and found numbers that are used to encrypt very important documents. It seems that those numbers are not always generated using large enough prime numbers. Your mission should you choose to accept it, is to factorize these numbers as fast as possible before the target fixes this bug on their server - so that we can decode the encrypted documents.
https://github.com/starlingvibes/rsa-factoring-challenge
cryptography prime-numbers rsa
Last synced: about 5 hours ago
JSON representation
We have sniffed an unsecured network and found numbers that are used to encrypt very important documents. It seems that those numbers are not always generated using large enough prime numbers. Your mission should you choose to accept it, is to factorize these numbers as fast as possible before the target fixes this bug on their server - so that we can decode the encrypted documents.
- Host: GitHub
- URL: https://github.com/starlingvibes/rsa-factoring-challenge
- Owner: starlingvibes
- Created: 2022-07-21T12:43:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T13:24:59.000Z (over 2 years ago)
- Last Synced: 2023-03-05T04:48:36.441Z (over 1 year ago)
- Topics: cryptography, prime-numbers, rsa
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RSA-Factoring-Challenge
We have sniffed an unsecured network and found numbers that are used to encrypt very important documents. It seems that those numbers are not always generated using large enough prime numbers. Your mission should you choose to accept it, is to factorize these numbers as fast as possible before the target fixes this bug on their server - so that we can decode the encrypted documents.## 0. Factorize all the things!
Factorize as many numbers as possible into a product of two smaller numbers.
Usage: factors where is a file containing natural numbers to factor. One number per line You can assume that all lines will be valid natural numbers greater than 1 You can assume that there will be no empy line, and no space before and after the valid number The file will always end with a new line Output format: n=p*q one factorization per line p and q don’t have to be prime numbers See example You can work on the numbers of the file in the order of your choice Your program should run without any dependency: You will not be able to install anything on the machine we will run your program on Time limit: Your program will be killed after 5 seconds if it hasn’t finish Push all your scripts, source code, etc… to your repository we will only run your executable factors
## 1. RSA Factoring Challenge
RSA Laboratories states that: for each RSA number n, there exist prime numbers p and q such that
n = p × q. The problem is to find these two primes, given only n.
This task is the same as task 0, except:
p and q are always prime numbers There is only one number in the files How far can you go in less than 5 seconds?
## Read: RSA Factoring Challenge