Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String [] odczytane = new String(zPliku).split(" ");
- for(String o: odczytane){
- //System.out.println(o);
- BigInteger wynik= deszyfrujRSA(new BigInteger(o), d, n);
- //System.out.print(wynik[0]);
- obslugaPlikow.zapis2(wynik);
- }
- System.out.println(odczytane.length);
- }
- private BigInteger deszyfrujRSA(BigInteger text, BigInteger d, BigInteger n){
- return text.modPow(d, n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement