reset password
Author Message
ljuster2
Posts: 19
Posted 14:28 May 20, 2015 |

For part A)

"The class(es) should be able to generate public and private key pairs of arbitrary size and should be able to cipher and decipher short messages"

java -Dprime_size=500 security.RSA -gen "hello world"

We think yellow matches with yellow, and green matches with green, but are not sure why they used "-Dprime_size". Also not sure why they used "-gen".

 

Can someone explain why they used -Drime and -gen, and also Professor Guo, is it ok if we just pass the size and message as follows:

---> java RSA 500 helloworld

 

Thanks

 

304395109
Posts: 10
Posted 15:05 May 20, 2015 |
Hi there, They are the VM arguments (-Dprime)and the one that you are giving are command line arguments, that's why they look different. You can refer to this link for clarification- http://www.avajava.com/tutorials/lessons/whats-the-difference-between-program-arguments-and-vm-arguments.html