Commit Graph

56 Commits

Author SHA1 Message Date
a1e05a572a
Interfacing changes:
- Split into methods.
    - Added a cli interface with commands 'gen <filename>' to generate keys
      and 'encrypt <message> <publicKey>' to encrypt a message
      to the passed key.
    - Read and save keys.
2020-04-16 12:40:48 +03:00
4bd8fcf1dd
A 128-bit key pair saved. Took 15 minutes to generate on (Intel i7-4710MQ (8) @ 3.500GHz) single thread. 2020-04-16 09:51:08 +03:00
1993551a59
Working key pair generation, encryption and decryption
TODO:
   - Clean up
   - Split into methods
   - Save a key pair in a file (interactivly)?
2020-04-16 09:48:31 +03:00
1a591cc75e
getPrime() method working. gets random prime based on bit size. 2020-04-16 05:54:36 +03:00
7fe7065700
isPrime() method working with good accuracy. needs more testing. 2020-04-16 05:11:00 +03:00
9f5d9fe5a5
init commit 2020-04-16 00:05:03 +03:00