Page 1 of 1

Problem retrieving encripted characters in SQLITE

Posted: Sun Oct 04, 2015 8:47 pm
by mrcoollion
I have the following problem.

I encrypt data and put it into a field of an SQLite database
The encrypted code is as below
E5BB0C163CE26A9D57BBDCF6B8CBAB12

However if I try to retrieve this field with 'put revDataFromQuery(,,DatabaseID,tSQL) into tRec'
the field with the encrypted data only returns the following characters: E5BB0C163CE26A9D57BBDCF6B8.

Additional information:
File type is defined as Char (120) . Just to make sure the field was not set to small.
It is the last field in the table (might be useful to know?)
When I look in the database with SQLite Expert professional I see that the encrypted data has been written correct into the database.

Maybe I need to use a different field type?

Anybody knows a solution for this problem ?

Thanks

Paul

Re: Problem retrieving encripted characters in SQLITE

Posted: Mon Oct 05, 2015 4:27 pm
by mrcoollion
After some tests I solved the problem :mrgreen: .

Instead of declaring the field as as Char (120) I declared it as Text.
This solved the problem!

Hope this saves sombody else some time :D

Kind regards,

Paul