PDA

View Full Version : extjs grid doesn't show encrypted data



pishtaz2020
1 Jul 2015, 3:01 AM
Hello ,
I use php and extjs in my project , with php retrive data from database and with extjs show them .
but extjs doesn't show encrypted data .
please help me to view encrypted data in grid extjs
The Body column values is encrypted data.

var store = new Ext.data.GroupingStore({
// load using HTTP
remoteSort : true,
sortInfo : {field : 'id'},
encrypt : true,
autoLoad : {
params : {
start : 0,
limit : myPageSize
}
},
url : baseQuery,
// the return will be XML, so lets set up a reader
reader : new Ext.data.XmlReader({
// records will have an "Item" tag
record : 'OTHERS',
totalProperty : 'totalCount',
encrypt : true
}, ['CODE','Src_IP','Dst_IP','Src_port','Dst_port','Body','Connection'])
});

store.on('load', function(store, records, options ){
var pageCount = Math.ceil(store.getTotalCount()/btoolbar.pageSize);
var activePage = Math.ceil((btoolbar.cursor + btoolbar.pageSize) / btoolbar.pageSize);
if(activePage>pageCount && activePage!=1)
btoolbar.moveFirst();
});

// var sm = new Ext.grid.CheckboxSelectionModel()
var othersGrid = new Ext.grid.GridPanel({
store : store,
id : 'OTHERS',
loadMask : true,
stripeRows: true,
scrollable: true,
plugins : [filters],
columns : [{
header : "CODE",
width : 80,
dataIndex : 'CODE',
sortable : true

},{
header : "Client_IP",
width : 100,
dataIndex : 'Src_IP',
sortable : true,
groupable : false
},{
header : "Server_IP",
width : 100,
dataIndex : 'Dst_IP',
sortable : true
},{
header : "Client_port",
width : 100,
dataIndex : 'Src_port',
sortable : true
},{
header : "Server_port",
width : 100,
dataIndex : 'Dst_port',
sortable : true
},{
header : "Body",
width : 100,
dataIndex : 'Body',
sortable : true
},{
header : "Connection",
width : 100,
dataIndex : 'Connection',
sortable : true
}],
bbar : btoolbar,
enableDragDrop : false,
groupOnSort : true,
stateful : true ,
encrypt : true,
view : new Ext.grid.GroupingView({})
});

Gary Schlosberg
1 Jul 2015, 5:15 AM
With what kind of encryption is your data arriving?

pishtaz2020
1 Jul 2015, 5:42 AM
The type of encryption is unknown.
example :
1.彜 ~汞钲Sd絨/򑅆反糡郍
2..}摲t謡6x!薉 SL旧
6儅p
錆.铍蔮Nm+:焋 m
3. ...

Gary Schlosberg
1 Jul 2015, 3:51 PM
So you are not wanting to decrypt it, rather you are looking to display it as is?

pishtaz2020
1 Jul 2015, 10:25 PM
yes. I want to display encrypted data without decrypt them . but extjs don't display them