READING FROM FILE DECRYPTION ERROR
Hi,
I can successfully encode and write to a file using DESede and tested my code using a standard String encode/decode test. However when reading from the file again my message always is a blank String
cipher.init(Cipher.ENCRYPT_MODE, key);
CipherInputStream cis = new CipherInputStream(fis, cipher);
byte data[] = new byte[cis.available()];
cis.read(data);
String msg = decrypt(data);
System.out.println("msg: "+msg);
System.out.println("msgbte: "+msg.hashCode());
cis.close();
My decrypt method is here
cipher.init(Cipher.DECRYPT_MODE, key);
byte[] recoveredBytes = cipher.doFinal(encryptionBytes);
String recovered = new String(recoveredBytes);
return recovered;
Note: This code doesnt return any Exceptions however the hexCode is always 0. What can i do?

