I would like to update the JTable
without AES_ENCRYPT
the data is can be updated and viewed, but since the data is encrypted each time i try to call this method the data is still encrypted. how can I use solve this issue ?
private void Update_Table(){
try{
String sql = "SELECT ID, AES_DECRYPT(FirstName, 'uk112') "
+ "AS FirstName, AES_DECRYPT( MiddleName, 'uk112') "
+ "AS MiddleName, AES_DECRYPT(LastName, 'uk112') "
+ "AS LastName, DOB, AES_DECRYPT(Gander, 'uk112')"
+ "AS Gander, AES_DECRYPT(Address, 'uk112')"
+ "AS Address, AES_DECRYPT(City, 'uk112' ) "
+ "AS City, AES_DECRYPT(PostCode, 'uk112')"
+ "AS PostCode FROM Customer";
pst = conn.prepareStatement(sql);
rs =pst.executeQuery(sql);
CTable.setModel(DbUtils.resultSetToTableModel(rs));
pst.close();
rs.close();
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}
}
whenever i try call the Update_Table method in order to update The JTable
this happens