Rsa Problem
When I running my Rsa program to testing the time. It has a exception that: Data must not be longer than 117 bytes. My encrypted thing is a object contains 4 string information. There is no restraction of RSA about data in document. Anybody know what's the problem?
Thanks very much.
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
keyGen.initialize(1024);
KeyPair pair = keyGen.generateKeyPair();
long startTime = TimeCounter.startTime();
Rsa rsa =new Rsa(pair);
rsa.encypt(si);
SecretInformation decrypted = rsa.decypt();
System.out.println(TimeCounter.period(startTime));

