Hi dear friends,
My current problem regarding inputstream value processing . I don't get the block level full value as shown in loop.I got last byte value only
cipher.init(cipherMode, publicKey);
byte[] encText = null;
while ( (bufl = inputReader.read(buf)) != -1)
{
encText = RSAEncryptUtil.encrypt(RSAEncryptUtil.copyBytes(buf,bufl),(PublicKey) publicKey);
}
String hexString = HexEncodeDecode.encode(encText);
I need to get encText byte[] value with full encrypted file value . Any body have a fast solution please..
Thanks
Anes