Hi evreyone,
I am passing an encrypted message from my client application to my server application. (just for testing purposes) In the server i get the message as:
String ciphertext = input.readLine();
To Decrypt the message I need to pass it to decrypt function which gets arguments as BigInteger[] something like:
public static String Decrypt(BigInteger[] ciphertext)
{
String strRecoveredPlaintext = rsa.decrypt( ciphertext ) ;
return strRecoveredPlaintext;
}
My question is how can i covert my ciphertext which is string of numbers to BigInteger[] to be passable to Decrypt function?
best regards,
rahman
I am passing an encrypted message from my client application to my server application. (just for testing purposes) In the server i get the message as:
String ciphertext = input.readLine();
To Decrypt the message I need to pass it to decrypt function which gets arguments as BigInteger[] something like:
public static String Decrypt(BigInteger[] ciphertext)
{
String strRecoveredPlaintext = rsa.decrypt( ciphertext ) ;
return strRecoveredPlaintext;
}
My question is how can i covert my ciphertext which is string of numbers to BigInteger[] to be passable to Decrypt function?
best regards,
rahman