I am encrypting a java.lang.String
using javax.crypto.Cipher
and returning a java.lang.String
via return new String(Base64.encodeBase64(encryptedValue));
.
I previously tested the CallableStatement.execute()
as working correctly with just java.lang.String
and have recently changed the CallableStatement.setString(int parameterindex, String x)
to use new String(Base64.encodeBase64(encryptedValue));
for the second argument.
This has somehow made the CallableStatement.execute()
stall while debugging and the application quits debugging in Eclipse with no error. The statement did not succeed by a quick check of the table I am modifying.
The table column type is VARCHAR2
and now I am wondering if I need to perform some type of conversion from Base64
to VARCHAR2
and vice versa.