Very dirty implementation example of the RSA algorithm. Meant only for learning purposes.
bun run rsa -- [--options]
Option | Default | Description |
---|---|---|
--message="Hello World" |
"Hello World" |
Set a message to be encrypted. |
--length=16 |
16 |
Select the key length. Has to be divisible by 2. |
--e= |
undefined |
Set the public key exponent rather than letting the algorithm choose. |