Hi, What if your app is KILLED by task amager? Then the decrypted DBfile could stay there, since there's no time for whipe-delete. Or ???
Another fatal situation can be a power outage while running your app. After power comes back, windows boots, user logs on, then starts your app again... What does it then, when does not find the encrypted DB - since it was whipe-deleted upon the previous start? By(t)e K.L. -----Original Message----- I wrote a wrapper for the dB File that would encrypt the entire file, storing it in a secure directory that can only be accessed by the currently logged on username, and wipe deleted the original. This was made a part of the application and occurred upon the closing of the datamodule itself. Then, when the app was started again, the wrapper would decrypt the dB File, And move it back into the user's working directory, wipe-deleting the encrypted version at the same time. Then when the datamodule is created, the file is there ready to be found! The Application also uses this wrapper as part of its Archiving procedure, making sure any archived copies of the dB file are first encrypted before being copied to the user's Archive directory. That way, Archives themselves can only be opened by the application again. __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk