Hello mathmathou,
Thanks for helping to find the step I have forgotten.
What I want is to update the database with the testresult.
I was hoping that changing the value would directly change the database too and not only the memory.
I was trying to access the "ID" of the record but this has not worked. Following a copy from the original try - with your correction - which was not working:
while not evaluate.Eof do
begin
checkmate := strtomd5(evaluate.fieldbyname('valueA').asstring + evaluate.fieldbyname('valueA').asstring);
recordid := evaluate.fieldbyname('ID').asinteger;
if (evaluate.fieldbyname('valueC').asstring <> checkmate) then
begin
sqlexecute('update entries set resultB = 1 where id='+recordid);
end
else
begin
sqlexecute('update entries set resultB = 0 where id='+recordid);
end;
evaluate.Next;
end;
evaluate.free;
- Errors are possible because I am at the moment not at work...
The "evaluate.fieldname('ID').asinteger" create an error message but not working result. Maybe something missing here or is it not possible to access the ID field this way?
Finally it should be a test system for checking database records if they have been modified outside the application with a Database Browser.
At the end it would be something like
checkmate := strtomd5(evaluate.fieldbyname('valueA').asstring + evaluate.fieldbyname('valueA').asstring + SecretWord);
Where "SecretWord : string" and stored inside the Application or Database as base64 encoded value.
Is there a Delphi Source about encryption (AES, Blowfish, Twofish, etc.) which can be included in MyVisualDatabase or is there any restriction because it comes from Russia? I would like to encrypt the SecretWord and some Fields more complicated to prevent some "weekend hackers" or "script kiddis" from changing record values.
Thank you.