Skip to content

Instantly share code, notes, and snippets.

@olofmagn
olofmagn / AttackRSA
Last active December 15, 2020 09:58
import java.io.BufferedReader;
import java.io.FileReader;
import java.math.BigInteger;
public class AttackRSA {
public static void main(String[] args) {
String filename = "input.txt";
BigInteger[] N = new BigInteger[3];
BigInteger[] e = new BigInteger[3];
@olofmagn
olofmagn / EEA
Created December 14, 2020 20:54
import java.math.BigInteger;
import java.util.BitSet;
public class EEA {
public static BigInteger[] EEA(BigInteger a, BigInteger b) {
// Note: as you can see in the test suite,
// your function should work for any (positive) value of a and b.
//We need to redo EEA with BigIntegers from previous Task