JSStore Encrypt Data issues
shaangidwani opened this issue · 3 comments
JSStore Encrypt Data issues
We have implemented JSStore with encrypt but we have some issues in that
-
When we try to set encrypt date-time time fields it gives the error below :
err message: Invalid array length -
When any data is null and that column is set as encrypted then it gives the error:
err message : Cannot read properties of undefined (reading 'encrypt')
Try to select data with decrypt attribute but sometime its gives decrypt data and sometime its gives encrypt data
ex :
getPatient() {
return await this.connection.select({
from: this.tableName,
decrypt: true
})
sometimes Its gives decrypts data but most of the time its gives encrypts data.
- When selecting the data with join table and join table having encrypted value then its not decrypted any data.
{
with: TableNames.Patients,
on: TableNames.Visits + ".PatientID=" + TableNames.Patients+".PatientID",
as: {
OLPatientID: TableNames.Visits + "_OLPatientID",
FacilityID: TableNames.Facility + "_FacilityID",
PracticeID: TableNames.Patients + "_PracticeID",
}
},
in the above example, if the patient table has encrypted values like first name and last name, it does not always give decrypted values.
I have already submitted issues on jsstore-encrypt repository but I have not gotten any help.
Please anyone who can help on this will be highly appreciated.
thanks @ujjwalguptaofficial
We have modify datetime to intiger with date value and its encrypt the data