Daily stuff not frequently posted a software developer finds out or rants about.

Thursday, June 05, 2008

Amazon and Eraser APIs updated

This is just a small update, related to two of the files I made available here.

The Amazon lookup unit, snlProtoAmazonOnca.pas, has been updated since Amazon does no longer support the DevToken method. The quick fix in the unit just raises an exception when it is used to allow supporting code to still compile; replacing it with the AssociateID method is a must though for your app to be able to query again.

Also, the 5.8.6 Eraser update was too C-ish, no longer exporting plaintext function names in Eraser.dll. The updated snlAPIEraser.pas contains a quick fix for 5.8.6, with the hope that they'll get back to "proper" exporting with the next version.

The new file revisions are available through their links at the right side of this blog.

Labels: ,

Friday, November 23, 2007

Eraser API headers

Do you know Eraser? It's a tool that allows you to remove sensitive files in a really persistent way that should be unrecoverable, using mechanisms defined even by the U.S. Department of Defense, as well as security experts.

Eraser offers a library that allows other software to use it. This software in itself needs to be GPL'ed as well according to their source page, but this requirement is not mentioned during installation or on the download page itself. So the situation is a bit unclear. I've written a small Pascal file that defines the links to Eraser and implements a mini class to use, and am publishing it here now in case some GPL software wants to use it: snlAPIEraser.pas.

Usage should be easy:

   GEraser := TEraser.Create;
   if GEraser.IsAvailable then begin
      GEraser.EraserInit;
   end;
   // app code
   if GEraser.IsAvailable then begin
      Result := GEraser.EraserRemoveFile(Filename);
   end;
   // app code
   if GEraser.IsAvailable then begin
      GEraser.EraserEnd;
   end;
   GEraser.Free;


Please remember, Eraser is GPL'ed, honor that!

Labels: , ,