As far as it being too slow, it's hard to say. It doesn't seem like it should take too long to decrypt 2 strings. Would it help to encrypt the entire record at once instead of each column at a time?
-matt
Jefferson Samuel wrote:
I have functions to encrypt-EN() & decrypt-DE() a record in the palm database.
I have a function NewRecord(Char *col1,Char *Col2) to insert the values to the database. I want the records to be stored in the Encrypted form.
EG: NewRecord(Char *col1,Char *Col2) ---------- NewRecord("Hello","Hai");
NewRecord(): 1) Find the Sort Position. (Not possible b'coz records are in encrpyted, so How can I compare records? ) 2) Encrypt col1 & col2 and store it in ENcol1 & ENcol2 3) Store the ENcol1 & ENcol2 in the sort position retrived from step 1.
When showing the records: DmQueryRecord() retrives the Encrypted data. This has to be Decrypted.
Retriving 10 records and decrypting them takes a long time.
Please give me your suggestions. When excatly should I encrypt & decrypt my records ?
Appericate your time.
with regards Jeffy
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
